Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Capturing STDERR using IO::Handle

by educated_foo (Vicar)
on Nov 26, 2007 at 21:00 UTC ( [id://653082]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Capturing STDERR using IO::Handle
in thread Capturing STDERR using IO::Handle

Ah, right you are. But it's easy to screw yourself that way, since you're also blocking the child's STDIN and STDOUT.
  • Comment on Re^5: Capturing STDERR using IO::Handle

Replies are listed 'Best First'.
Re^6: Capturing STDERR using IO::Handle
by ikegami (Patriarch) on Nov 26, 2007 at 23:05 UTC

    No harder than your method, since you can pass open file handles to open3 or open-style dup instructions.

    STDIN is moot. None of solutions pass anything to STDIN, since we weren't asked to pass anything to STDIN. You can close the child's STDIN if you want, or you can tie it to the parent's STDIN (by passing '<&STDIN') if you want.

    Similarly, you can do anything you want with the child's STDOUT. You can tie it to the parent's STDOUT ('>&STDOUT'), you can close it, you can redirect it to /dev/null, etc.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-19 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found