in reply to capturing STDOUT
use IO::Scalar; tie *STDOUT, 'IO::Scalar', \$a; # do STDOUT-specific code here untie *STDOUT; # and now do something interesting with $a
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: capturing STDOUT
by jmcnamara (Monsignor) on Apr 30, 2001 at 03:30 UTC |