Hello,
I'm trying to open (create if necessary) a file for APPEND, that will serve as a log. The script I'm using will open a file, but fails to print anything to it. Any advice?



my $filename = "open_file.txt";
open(APPEND, ">> $filename")
        or die "Couldn't open $filename for appending: $!\n";
        write "$subscriber\n";
close APPEND;

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to