Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: open3 but for n file descriptors

by tange (Initiate)
on Jul 20, 2013 at 09:19 UTC ( #1045436=note: print w/ replies, xml ) Need Help??


in reply to Re^2: open3 but for n file descriptors
in thread open3 but for n file descriptors

Looking at the man page for open, it seems what I need is this:

open(my $err, '>', "foo.out"); open(STDERR, ">&", $err);
but in a generic version, so I can use other file descriptors than STDERR (fd2).


Comment on Re^3: open3 but for n file descriptors
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2015-07-03 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls