Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 lurking in the Monastery: (10)
As of 2015-08-27 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (334 votes), past polls