in reply to Re: Could I redirect stdout back into my script?
in thread Could I redirect stdout back into my script?
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(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Could I redirect stdout back into my script?
by stephen (Priest) on Apr 22, 2001 at 04:17 UTC |