Your use of the idiom is correct. The trouble is that Test::Harness does its own IO remapping.
You could try running tests from the command line and redirecting output from there.
After Compline,
Zaxo
In reply to Re^3: How to capture STDOUT/STDERR of a function
by Zaxo
in thread How to capture STDOUT/STDERR of a function
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |