Check out Test::Output and Test::Output::Tie.
Nope. These are for testing things that output to STDERR (and other filehandles), not for capturing the STDERR output from test scripts :-)
For the latter look at analyze() from Test::Harness::Straps and use some kind of IPC3/Run3 variant to capture STDERR. See Quiet test runner for an example.
In reply to Re^2: Capturing stderr from a test script executed by Test::Harness::Straps
by adrianh
in thread Capturing stderr from a test script executed by Test::Harness::Straps
by DrWhy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |