Think about Loose Coupling | |
PerlMonks |
Re: overriding a methods.by merlyn (Sage) |
on Jan 04, 2002 at 18:28 UTC ( [id://136274]=note: print w/replies, xml ) | Need Help?? |
The first one works fine, provided you understand that you're compiling code which has to be compiled after the original method is compiled. So, it's fine after a use that pulls in the other module. You'll probably get a "redefining ___" warning though. The typeglob assignment has also worked for me in the past.
In Section
Seekers of Perl Wisdom
|
|