Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
Replies are listed 'Best First'.
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: (15)
As of 2015-07-31 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls