Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Correct way to capture command output to a file in Perl.

by morgon (Curate)
on May 02, 2013 at 15:02 UTC ( #1031766=note: print w/replies, xml ) Need Help??


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).

  • Comment on Re^2: Correct way to capture command output to a file in Perl.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031766]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2016-12-11 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.