in reply to Re^2: How to capture STDOUT/STDERR of a function
in thread How to capture STDOUT/STDERR of a function

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

  • Comment on Re^3: How to capture STDOUT/STDERR of a function