RE: trying to write to a file

2001-10-26 Thread Grierson, Garry (UK07)
gt; To: Linux Beginners > Subject: trying to write to a file > > hey im trying to write to a file with just like 6 lines of code and it > doesnt work so I need some help. here is the code: > > #!perl > > open DATA, "> mydata.dat"; > > unless ($s

Re: trying to write to a file

2001-10-25 Thread Mark Bergeron
And I quote, "just like 6 lines of code and it doesnt work so I need some help." Are you sure about this? -Original Message- From: "Matthew Mangione"<[EMAIL PROTECTED]> To: "Linux Beginners"<[EMAIL PROTECTED]> Date: Thu Oct 25 09:35:02 PDT 200

Re: trying to write to a file

2001-10-25 Thread register
rl you might run into problems. all you need to do is > > close DATA; > > Typically the code to do what you set out below is something like > > open(DATA,">mydata.dat") or die "Problem encountered:$!\n"; > print DATA "Hi Matt\n"; > c

Re: trying to write to a file

2001-10-25 Thread register
need to do is close DATA; Typically the code to do what you set out below is something like open(DATA,">mydata.dat") or die "Problem encountered:$!\n"; print DATA "Hi Matt\n"; close DATA; On Thu, Oct 25, 2001 at 12:35:02PM -0400, Matthew Mangione shaped the ele

Re: trying to write to a file

2001-10-25 Thread Curtis Poe
--- Matthew Mangione <[EMAIL PROTECTED]> wrote: > hey im trying to write to a file with just like 6 lines of code and it doesnt work >so I need > some help. here is the code: > > #!perl > > open DATA, "> mydata.dat"; > > unless ($suc

trying to write to a file

2001-10-25 Thread Matthew Mangione
hey im trying to write to a file with just like 6 lines of code and it doesnt work so I need some help. here is the code: #!perl open DATA, "> mydata.dat"; unless ($success) { print "Problem Encountered"; die; } print DATA "Hi Matt"; thanxmatt