Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Effect of redirecting output to /dev/null on $? value

by jcb (Parson)
on Aug 05, 2020 at 00:01 UTC ( [id://11120298]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Effect of redirecting output to /dev/null on $? value
in thread Effect of redirecting output to /dev/null on $? value

I have used this before, but our questioner seemed to be asking for a minimal solution. This strategy is the only way if you need more than the basic pipes, but (having just checked) IPC::Open3 is actually implemented using system, presumably for compatibility on Windows, where fork must be emulated.

  • Comment on Re^3: Effect of redirecting output to /dev/null on $? value

Replies are listed 'Best First'.
Re^4: Effect of redirecting output to /dev/null on $? value
by ikegami (Patriarch) on Aug 05, 2020 at 04:11 UTC

    open3 only uses system in Windows and OS/2; fork is used elsewhere.

Log In?
Username:
Password:

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

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

    No recent polls found