Is this not a test for a file handle?
open my $oldSTDOUT, ">&STDOUT"; open OLDERR, ">&",\*STDERR; open(STDOUT, ">&", $oldSTDOUT) or warn("Can't open STDOUT"); + open(STDERR, ">&OLDERR") or warn("Can't open STDERR");
Neither published a warn
In reply to Re^6: STDERR Restore after redirect
by tultalk
in thread STDERR Restore after redirect
by tultalk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |