Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2014-07-13 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (246 votes), past polls