Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: capturing stderr of echo piped to a file

by Anonymous Monk
on Oct 28, 2014 at 19:35 UTC ( #1105361=note: print w/replies, xml ) Need Help??


in reply to capturing stderr of echo piped to a file

use system with use Capture::Tiny
use Capture::Tiny qw/ capture /; my($stdout, $stderr, $exit) = capture { system { $args[0] } @args; };;

Replies are listed 'Best First'.
Re^2: capturing stderr of echo piped to a file
by cebundy (Novice) on Oct 28, 2014 at 20:36 UTC
    Thanks. I was hoping for something a little simpler in the sense of not having to install and load another module, but this works, which is the important thing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2022-01-19 03:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?