Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Filehandle woes

by c-era (Curate)
on Dec 11, 2001 at 01:11 UTC ( #130781=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open (TEST,"test") || die $!;
    mysub (TEST);
    ...
    my $txt = <$fh>;
    print $txt;
    }
    
  2. or download this
    package mypac;
    sub mysub {
    ...
    package main;
    open (TEST,"test") || die $!;
    mypac::mysub ("main::TEST");
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2022-07-05 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?