![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re: STDERR and STDOUT redirection from codeopen/codeby tachyon (Chancellor) |
on Apr 11, 2002 at 20:13 UTC ( #158419=note: print w/replies, xml ) | Need Help?? |
This will do the trick for you (on *nix):
The open executes $command. The 2>&1 redirects STDERR to STDOUT and backgrounds process. The | pipes the output to the CMD filehandle which we then read from as usual. cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In Section
Seekers of Perl Wisdom
|
|