doniking has asked for the wisdom of the Perl Monks concerning the following question:
but it prints nothing to the screen. Could somebody give an advice?my $file1_temp = "output.txt"; open (FILE1_TEMP, "+>$file1_temp") or die "Could not open $file1_temp: + $!"; print FILE1_TEMP "hello, world!"; while (<FILE1_TEMP>) { print $_; } close FILE1_TEMP;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: open file, write then read problem
by GrandFather (Saint) on Jun 15, 2009 at 00:35 UTC | |
by doniking (Novice) on Jun 15, 2009 at 03:44 UTC | |
Re: open file, write then read problem
by Anonymous Monk on Jun 15, 2009 at 00:41 UTC |