in reply to how do i redirect STDOUT, STDIN, or STDERR to a FILE?
This approach produces an error due to the final print statement (print() on closed filehandle STDOUT at...) Anybody know how I can get STDOUT to direct output back to the screen?print "Creating .\\ch9.log ..."; open STDOUT, ">ch9.log" or die $!; print Dumper data_for_path ('.'); close STDOUT; print "Done!\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Answer: how do i redirect STDOUT, STDIN, or STDERR to a FILE?
by moritz (Cardinal) on Jul 09, 2008 at 22:26 UTC |