Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: capturing stderr of echo piped to a file

by Anonymous Monk
on Oct 28, 2014 at 19:35 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-05-18 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found