To append to a file, you must open() the file, like so:
open(OUTFILE,">>myfile.txt") || die "Could not open myfile.txt
for appending!\n";
Then when you want to write to the file, use print(), like so:
print OUTFILE "The text I want to add to the end of my file\n";
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 3:29 PM
To: [EMAIL PROTECTED]
Subject: appending to a file
more help please! I looked through my Learning Perl book and only see
code >>filename for appending to a file. Here is my code but it is not
writing to STDOUT designated as my file.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>