Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to dup $FOO to STDIN

by jeroenes (Priest)
on Nov 15, 2001 at 12:25 UTC ( #125527=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open FOO, "<filename" or die ...;
    *STDIN = *FOO;
    
  2. or download this
    my $fileno = fileno( $foo );
    open STDIN, ">&$fileno" or die "Could not open $fileno: $!";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://125527]
help
Chatterbox?
[Lady_Aleena]: Discipulus, print working directory?
[Corion]: "P(ass)w(or)d" ;)
[Lady_Aleena]: Corion, I knew that, I was just giving Discipulus a hard time.
choroba likes the story at the end of the node
[choroba]: reminds me of the days at the bank

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-04-26 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.