Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Customizing cpan modules

by pileofrogs (Priest)
on Jul 17, 2009 at 04:22 UTC ( [id://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.

--Pileofrogs

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-19 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found