Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-10-17 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (218 votes). Check out past polls.

    Notices?