Carrie Lyn Brammer wrote:
>
> I've looked throgh the recent archives. A lot of what
> is being discussed seems too 'advanced' for me. I guess
> i'm a REAL baby newbie.
>
> Can someone please look at the following project, and
> tell me why it is not writing the contents of the
> readfile.txt to
you need to add the name of the target filehandle when you write to it. for
example:
if you open writefile.txt with the filehandle WRITE, you must print to it
like so:
print WRITE "add some text";
At 18:18 18/07/2002 -0500, Carrie Lyn Brammer wrote:
>I've looked throgh the recent archives. A
>> print (@contents);
You have to print to the file handle, otherwise, nothing will
write to WRITEFILE, but to screen only.
So, you have to write as :
print WRITEFILE @contents;
>> @newcontents = ;
>> print "\n The contents of writefile.txt is $newcontents \n";
No, $newcontents here will prin