![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Reopen a class, add methods ?by ikegami (Patriarch) |
on May 13, 2007 at 02:03 UTC ( #615136=note: print w/replies, xml ) | Need Help?? |
I recommend changing the package for the reasons I already gave. However, instead of
I'd use
The package directive will only be effective until the end of the block, at which time the package will revert to what it was before the package directive was encountered. Hardcoding main will cause code to fail once ported to Apache::Registry, or if the code is copied/moved into a module.
In Section
Seekers of Perl Wisdom
|
|