in reply to Tee STDOUT
It errors out withmy $stdout = ''; eval { *STDOUT = new IO::Tee( \*STDERR, IO::Scalar->new(\$stdout)); $ok = runtests(@tests); };
How can I capture runtest output to a string as well as the screen?write() on unopened filehandle STDOUT at /usr/lib/perl5/vendor_perl/5. +8.2/Test/Harness.pm line 665.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tee STDOUT
by ikegami (Patriarch) on Sep 24, 2004 at 02:31 UTC | |
by water (Deacon) on Sep 24, 2004 at 02:39 UTC |