Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Best Way to Redirect STDERR to a Scalar

by demerphq (Chancellor)
on Sep 13, 2003 at 23:15 UTC ( #291311=note: print w/ replies, xml ) Need Help??


in reply to Best Way to Redirect STDERR to a Scalar

Tie STDERR to a scalar using any one of a number of modules. However if you really are trying to trap warnings then you may want to trap $SIG{__WARN__} or overide warn. Personally I would just trap $SIG{__WARN__} unless I knew that the code I was dealing with also used $SIG{__WARN__}.


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...
Comment on Re: Best Way to Redirect STDERR to a Scalar
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2016-04-29 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (438 votes). Check out past polls.