in reply to Re: How to capture STDOUT/STDERR of a function
in thread How to capture STDOUT/STDERR of a function
Somehow all results are still printed out to screen, not to the $out variable. I tried STDERR too, the same result. Thanks.use strict; use Test::Harness; my $out; { open local(*STDOUT),'>',\$out; runtests(); } print $out;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to capture STDOUT/STDERR of a function
by Zaxo (Archbishop) on Aug 31, 2004 at 18:13 UTC | |
|
Re^3: How to capture STDOUT/STDERR of a function
by johnnywang (Priest) on Aug 31, 2004 at 18:09 UTC |