Think about Loose Coupling | |
PerlMonks |
Re: Re: Static Data ("__DATA__" vs. "our") (handles)by IlyaM (Parson) |
on Sep 18, 2003 at 19:30 UTC ( [id://292497]=note: print w/replies, xml ) | Need Help?? |
Another common problem I've seen with usage of __DATA__ in modules is using while(<DATA>) without localizing $_ (see while(<>) { ... } considered harmful why it is bad).
Update: Actually $_ should not be used in modules at all. See this bug report why.
--
In Section
Seekers of Perl Wisdom
|
|