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.In reply to Re: Capturing both STDOUT, STDERR and exit status
by polettix
in thread Capturing both STDOUT, STDERR and exit status
by pbeckingham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |