The "2>&1" bit redirects errors on STDERR to STDOUT, and the latter will be saved in $error_message.my $error_message = `sort -o $outfile $infile 2>&1`
In reply to Re: System(), writing to a new file
by zork42
in thread System(), writing to a new file
by cyates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |