Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Using IPC::Open3 instead of backtick operator

by Anonymous Monk
on Jun 10, 2016 at 20:59 UTC ( [id://1165368]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Using IPC::Open3 instead of backtick operator
in thread Using IPC::Open3 instead of backtick operator

My open will capture both the STDERR and STDOUT messages.

No, it doesn't.

$ cat main.pl #!/usr/bin/perl use warnings; use strict; open (IN, '-|', 'perl PrintStdoutStdErr.pl') or die "$!"; while (<IN>) { chomp; print "\"$_\"\n"; } $ perl main.pl 1>out 2>err $ cat out "this went to STDOUT" $ cat err this went to STDERR

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-23 08:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found