Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Customizing cpan modules

by pileofrogs (Priest)
on Jul 17, 2009 at 04:22 UTC ( #780917=note: print w/replies, xml ) Need Help??

in reply to Customizing cpan modules

What about forking your own module? Instead of making a 2nd Foo::Bar, make Foo::Bar::Mine or whatever. If you're worried about missing important patches to the original, write your code to load the original and change the bahavior. If the original is object oriented, then you subclass and override, if not I think you call it monkey-patching, but it works basically the same. You can also make patches from the current original module and your altered version and the apply the patches to any new version of the original.


Replies are listed 'Best First'.
Re^2: Customizing cpan modules
by graceoflarkspur (Acolyte) on Jul 17, 2009 at 23:18 UTC
    Second this -- or even just making your replacements into local functions if the changes are simple enough?

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2023-11-28 10:25 GMT
Find Nodes?
    Voting Booth?

    No recent polls found