No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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... In reply to Re: Best Way to Redirect STDERR to a Scalar
by demerphq
|
|