As you'd know, by default, STDERR points to STDOUT.
Oh really?
$ perl -le 'print STDOUT foo' 1>/dev/null $ perl -le 'print STDERR foo' 1>/dev/null foo
So, not true.
The solution to the original question involves saving the old STDERR in a variable before reopening it. If I remember correctly, perlopentut talks about that.
In reply to Re^2: Reset STDERR to console
by moritz
in thread Reset STDERR to console
by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |