*STDERR = *STDOUT; is transparent to the OS. It just plays with Perl variables. That's why it doesn't survive an exec, for example. As such, this change does not survive perl.
Even if you did play with the actual file descriptors (>&), file descriptors are process-specific, so the change would still not survive perl.
Either way, nothing needs to be cleaned up before perl exits.
In reply to Re: Tidying up after redirecting STDERR
by ikegami
in thread Tidying up after redirecting STDERR
by davies
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |