After
open ($oldout,'>&',\*STDOUT);
$oldout is a copy of STDOUT, which can now be safely closed or redirected and later restored by reversing the copy.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: rerouting STDOUT
by LanX
in thread rerouting STDOUT
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |