STDERR is not necessarily the same thing as file descriptor 3s/3/2/
In recent Perl there's no need to use package variables for file handles to achieve this.
open my $olderr, '>&', \*STDERR or die $!; #... open STDERR, '>&', $olderr or die $!;
In reply to Re^2: Suppress/Reactivate STDERR
by nobull
in thread Suppress/Reactivate STDERR
by saintmike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |