Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2016-06-27 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (337 votes). Check out past polls.