in reply to Re: output from cgi
in thread output from cgi
open(OUT, ">firstout.txt") or die "1: $!\n"; print OUT "First\n"; { local *OUT; open(OUT, ">secondout.txt") or die "2: $!\n"; print OUT "Second\n"; } print OUT "Third\n";
Update: If there's an explicit close, it's also worth checking for an error. Someone on p5p had intermittent test failures (creating temporary files) on a nearly full disk. I rarely check, but know I should.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (3): output from cgi
by talexb (Chancellor) on Jan 08, 2002 at 21:48 UTC |