Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Improve pipe open? (redirect hook)

by oiskuu (Hermit)
on Apr 01, 2017 at 21:07 UTC ( [id://1186696]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    {
        local $SIG{__EXEC__} = \&_do_redirect;
        system ...
    }
    
  2. or download this
    {
        use redirect qw( 3>&1 1>&2 2>&3 3>&- );
        open my $fh, ...;
        `another cmd`;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found