The stupid question is the question not asked | |
PerlMonks |
changing STDOUTby JFarr (Sexton) |
on Jul 21, 2006 at 22:08 UTC ( [id://562963]=perlquestion: print w/replies, xml ) | Need Help?? |
JFarr has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks I've been able to chagne the STDOUT with the tee.pl script, so I can write to the console and out output file. Now to refine it I want to be able to change from writing to the file and console, to just the console. Because we do not need to log everything we encounter. I've been beating my head against the wall today, trying different things but have not had any success. I figured someone must have done this already. Here is the code I have used to change STDOUT. The above snippet works fine. But how do I change back to normal STDOUT, where I am not writing to a file also? Many thanks in advance.
Back to
Seekers of Perl Wisdom
|
|