in reply to Capturing STDOUT
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Capturing STDOUT
by drewbie (Chaplain) on Nov 05, 2002 at 14:45 UTC |