Just another Perl shrine | |
PerlMonks |
Re: Static Data ("__DATA__" vs. "our") (handles)by tye (Sage) |
on Sep 18, 2003 at 19:15 UTC ( [id://292493]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|