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:
Can anyone give me a pure Perl way to do this that would work on all platforms?
Thanks!
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.@valid_types = `getValidTypes 2>&1`;
Can anyone give me a pure Perl way to do this that would work on all platforms?
Thanks!
----
My mission: To boldy split infinitives that have never been split before!
My mission: To boldy split infinitives that have never been split before!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Capturing both STDERR and STDOUT without shell redirect
by BioLion (Curate) on Aug 06, 2009 at 13:21 UTC | |
Re: Capturing both STDERR and STDOUT without shell redirect
by tokpela (Chaplain) on Aug 06, 2009 at 13:59 UTC | |
by fullermd (Priest) on Aug 06, 2009 at 19:18 UTC | |
Re: Capturing both STDERR and STDOUT without shell redirect
by ikegami (Patriarch) on Aug 06, 2009 at 18:01 UTC | |
Re: Capturing both STDERR and STDOUT without shell redirect
by Narveson (Chaplain) on Aug 06, 2009 at 21:31 UTC | |
Re: Capturing both STDERR and STDOUT without shell redirect
by nimdokk (Vicar) on Aug 06, 2009 at 13:58 UTC |
Back to
Seekers of Perl Wisdom