I want to update a status file, similar to this: open OUTFILE, ">", "status.txt"; print OUTFILE "$last_date\n"; close OUTFILE;
However, if something goes wrong (e.g. the disk is full), this code will replace "status.txt" with an empty file. How can I update the file while preserving the previous contents if something goes wrong? -- Mark Wagner -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/