Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Reset STDERR to console

by educated_foo (Vicar)
on Apr 01, 2011 at 10:28 UTC ( [id://896862]=note: print w/replies, xml ) Need Help??


in reply to Reset STDERR to console

The safest thing to do is probably to save your old STDERR and restore it afterwards:
{ local (*SAVEERR); open SAVEERR ">&STDERR"; # ... do your stuff open STDERR, ">&SAVEERR"; }
Also, take a look at perlopentut.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-24 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found