in reply to Capturing both STDOUT, STDERR and exit status
If you need to keep stderr and stdout separate use merlyn's suggestion.my $alloutput = qx(/bin/ls / 2>&1); my $exitcode = $? >> 8;
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Capturing both STDOUT, STDERR and exit status
by pbeckingham (Parson) on May 06, 2005 at 17:54 UTC | |
by polettix (Vicar) on May 06, 2005 at 22:34 UTC |