Update: My mistake. The untie does seem to take care of restoring the old STDOUT.{ my $output_string = ''; local *STDOUT; tie *STDOUT, 'IO::Scalar', \$output_string; stdout_sub(); }
In reply to Re: Re: Could I redirect stdout back into my script?
by runrig
in thread Could I redirect stdout back into my script?
by Rudif
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |