Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by davido (Archbishop)
on May 01, 2013 at 19:31 UTC ( #1031634=note: print w/ replies, xml ) Need Help??


in reply to Correct way to capture command output to a file in Perl.

Have you looked at Capture::Tiny? ...a third way, but it works great.

From the synopsis:

use Capture::Tiny ':all'; # capture from external command ($stdout, $stderr, $exit) = capture { system( $cmd, @args ); };

Dave


Comment on Re: Correct way to capture command output to a file in Perl.
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2015-08-30 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (350 votes), past polls