Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: qx and STDERR?

by bliako (Monsignor)
on Nov 26, 2019 at 08:22 UTC ( [id://11109234]=note: print w/replies, xml ) Need Help??


in reply to qx and STDERR?

There are lots of other options, e.g. System::Command, which let you handle each std stream individually, if you don't have to use qx

There is also Capture::Tiny which will capture your std streams, from manpage:

use Capture::Tiny ':all'; my ($stdout, $stderr, $exit) = capture { qx/ls -al file-does-not-exist/ };

p.s. I leave here just for reference a guide to IO redirection in bash - really cool stuff: http://tldp.org/LDP/abs/html/io-redirection.html

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found