Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Problems with open3

by RonW (Parson)
on Oct 15, 2014 at 17:01 UTC ( [id://1103937]=note: print w/replies, xml ) Need Help??


in reply to Re: Problems with open3
in thread Problems with open3

To capture STDERR with backquotes, use:

$output = `cmd 2>&1 1>/dev/null`;

If you want both, omit redirecting STDOUT to /dev/null:

$output = `cmd 2>&1`;

However, it is generally safer to use open3.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-23 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found