more useful options | |
PerlMonks |
Re: Suppress/Reactivate STDERRby ikegami (Patriarch) |
on Dec 15, 2006 at 23:55 UTC ( [id://590160]=note: print w/replies, xml ) | Need Help?? |
STDERR is not necessarily the same thing as file descriptor 2 (and it isn't after you do *STDERR = *OLDERR;). For commands executed by system, file descriptor 2 is stderr. They have no knowledge of the file descriptor associated with your program's STDERR variable. Replace
Update: s/3/2/g. Thanks nobull.
In Section
Seekers of Perl Wisdom
|
|