Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Static Data ("__DATA__" vs. "our") (handles)

by tye (Cardinal)
on Sep 18, 2003 at 19:15 UTC ( #292493=note: print w/ replies, xml ) Need Help??


in reply to Static Data ("__DATA__" vs. "our")

If you use __DATA__ in a module, then please be careful to close DATA soon after the module is first required.

Otherwise you are tying up one of the process's finite supply of file handles. It is easy for a Perl script to use a lot more modules than it does file handles, so this has the potential to be a big problem.

                - tye


Comment on Re: Static Data ("__DATA__" vs. "our") (handles)
Download Code
Re: Re: Static Data ("__DATA__" vs. "our") (handles)
by IlyaM (Parson) on Sep 18, 2003 at 19:30 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2015-05-22 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (465 votes), past polls