Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 ); };


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031634]
[1nickt]: you are missing an entire element, which is that your base ticket price only gets you a middle seat. If you want to be window or aisle you must pay, or gamble that you'll be assigned there at ...
[1nickt]: ... flihght time (hoping that not enough others have paid and there are some "good" seats to be allotted.
[1nickt]: And this is in addition to paying extra if you want to be in the first 12 rows, or in the emergency exit row.
choroba was once seeted besides a guy that was so fat he was almost squished between the guy
[holli]: I'm surprised there is not an entire genre of "fat guy on a plane" jokes

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-12-18 13:49 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (486 votes). Check out past polls.