The stupid question is the question not asked | |
PerlMonks |
Re: How can I redirect STDOUT and STDERR from a program on WIN32?by Anonymous Monk |
on Mar 11, 2000 at 22:43 UTC ( [id://5207]=note: print w/replies, xml ) | Need Help?? |
It can be done by redirecting STDERR to STDOUT:
my $output = `program 2>&1`;
print $output;
In Section
Seekers of Perl Wisdom
|
|