|No such thing as a small change|
Capturing both STDERR and STDOUT without shell redirectby DentArthurDent (Monk)
|on Aug 06, 2009 at 13:10 UTC||Need Help??|
DentArthurDent has asked for the
wisdom of the Perl Monks concerning the following question:
Hello fellow monks!
I've tried to RTFM, and I can't find the right FM. I have code that looks something like this:
This works great on UNIX, where the default shell knows how to deal with the redirect, but on Windows I'm having issues. What I would like to do is have perl unify the STDOUT and STDERR from that program onto one stream without using the shell redirection. I looked at the documentation for open(), which I thought would be able to do that but I didn't see what the idiom might be.
Can anyone give me a pure Perl way to do this that would work on all platforms?
My mission: To boldy split infinitives that have never been split before!