tmbg has asked for the wisdom of the Perl Monks concerning the following question:
I've got a bit of code stored in $_, and I want to be able to eval the code
and capture what would be printed to STDOUT and STDERR.
Currently I can only get the return value, which of a print statement is 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: capturing the output of eval()
by tilly (Archbishop) on May 09, 2001 at 20:20 UTC | |
|
Re: capturing the output of eval()
by mr.nick (Chaplain) on May 09, 2001 at 20:46 UTC | |
|
Re: capturing the output of eval()
by damian1301 (Curate) on May 09, 2001 at 20:21 UTC |