Don't assume anything about the current default filehandle.tie *LOCALFH, 'IO::Scalar', \$scalar; my $old_fh = select(LOCALFH); ...code that generates STDOUT... select $old_fh;
rdfield
In reply to Re: Capturing STDOUT
by rdfield
in thread Capturing STDOUT
by drewbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |