in reply to Re: Correct way to capture command output to a file in Perl.
in thread Correct way to capture command output to a file in Perl.
If you do it like that you would not use backticks but system() as you would not capture any output.
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 Section
Seekers of Perl Wisdom