Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Answer: overriding a methods.

by merlyn (Sage)
on Jan 04, 2002 at 18:28 UTC ( #136274=categorized answer: print w/replies, xml ) Need Help??

Q&A > object-oriented programming > overriding a methods. - Answer contributed by merlyn

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2016-12-02 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (51 votes). Check out past polls.