Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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
  • Comment on Re: Unassociated Filehandles and Subroutines

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://392686]
[shmem]: just one proverb before dozing off: when dealing with a bear, hubris is suicidal
[shmem]: Old_Gray_Bear would nod, and go back to sleep, then - but he's been sleeping for a year now.
[erix]: "AngloZionist Empire"? "Stop the Empire's war on Russia?" WTF?
erix stops reading as recommended by the blog itself
[erix]: my attention being jealously guarded ;)
[shmem]: erix, yes, it's a WTF. Since...
[erix]: antisemitic && (pro-)russian. Makes sense :P

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2018-03-19 20:51 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.