But I would not do it like that as in the error-case it is more difficult to determine what went wrong (e.g. the command you call may be able to run, but may not be able to write to the file).
In reply to Re^2: Correct way to capture command output to a file in Perl.
by morgon
in thread Correct way to capture command output to a file in Perl.
by perl514
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |