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

Re: How to dup $FOO to STDIN

by jeroenes (Priest)
on Nov 15, 2001 at 12:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-25 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found