Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Redirecting all output to a var for post processing?

If collecting all output in the same variable is OK for you, then using Tie::STDERR would do the job:
use vars qw($OUTPUT); use Tie::STDERR \$OUTPUT; *STDOUT=\*STDERR;
You might want to save the value of STDOUT if you would like to print something after you are done filtering etc.

goldclaw

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58234]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-23 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found