perldoc perlopentut has examples of reopening STD(OUT|ERR). You could also look at POSIX for its dup2().
In reply to Re: dup2 exact file descriptor
by Fletch
in thread dup2 exact file descriptor
by fxia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |