Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Tidying up after redirecting STDERR

by crashtest (Curate)
on Feb 22, 2010 at 22:08 UTC ( #824719=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl yourscript.pl >stdout.txt 2>stderr.txt
    
  2. or download this
    my ($out, $err) = (*STDOUT, *STDERR);
    eval{
    ...
        # ...
    };
    *STDOUT = $out; *STDERR = $err;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2019-10-18 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?