good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Redirecting all output to a var for post processing?by goldclaw (Scribe) |
on Feb 14, 2001 at 01:06 UTC ( [id://58234]=note: print w/replies, xml ) | Need Help?? |
If collecting all output in the same variable is OK for you, then using Tie::STDERR would do the job:
You might want to save the value of STDOUT if you would like to print something after you are done filtering etc. goldclaw
In Section
Seekers of Perl Wisdom
|
|