in reply to Capturing stderr from a test script executed by Test::Harness::Straps
What that does (if it works) is to put both STDERR and STDOUT together into the pipe. But then you have to know how to separate the error output from the non-error output, which might be a problem... (There shouldn't be any problem with lines being broken, but the relative ordering of stderr lines vs. stdout lines is not likely to be predictable or even consistent.)open( FILE, "$command 2>&1 |" );
I have a suspicion that it might not work on all OS's -- it should work on any unix-like system.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capturing stderr from a test script executed by Test::Harness::Straps
by DrWhy (Chaplain) on Oct 18, 2005 at 04:29 UTC |