Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Unassociated Filehandles and Subroutines

by rjbs (Pilgrim)
on Sep 21, 2004 at 15:36 UTC ( #392686=note: print w/ replies, xml ) Need Help??


in reply to Unassociated Filehandles and Subroutines

Consider avoiding the ALL CAP FILEHANDLE in favor of lexical filehandle references. They'll go out of scope and auto-close when they're no longer referenced, they help you avoid dealing with globs, and they just look better in your code, frankly.

consult perldoc -f open and (better) perldoc perlopentut
rjbs


Comment on Re: Unassociated Filehandles and Subroutines

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2015-07-04 07:40 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 (58 votes), past polls