Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: What is the correct way to override a Package Method

by unlinker (Monk)
on Oct 03, 2007 at 14:53 UTC ( #642420=note: print w/ replies, xml ) Need Help??


in reply to Re: What is the correct way to override a Package Method
in thread What is the correct way to override a Package Method

Thank you. This seems to be the best way to do it. may I trouble you for a small illustrative example? Here is what I want to do. I have a Package written by someone else and I want to override one of the methods in that Package without touching its source. However I want to do it in a way that even if that package calls, I want it to use my version. Thank you once again


Comment on Re^2: What is the correct way to override a Package Method
Re^3: What is the correct way to override a Package Method
by tinita (Parson) on Oct 03, 2007 at 20:20 UTC
    uhm, isn't the documentation Sub::Install clear enough?
    to give you an example i would just copy&paste from there anyway...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://642420]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2014-08-27 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (235 votes), past polls