perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
Suppose you want to monkey patch an entire module? What's the best way to go about it?
There will be two cases: one where the module has not been loaded yet and the case where it has been. And, to be most useful, you'd want the patching to be reversible.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: monkey patching an entire module
by ikegami (Patriarch) on Apr 21, 2009 at 15:29 UTC | |
Re: monkey patching an entire module
by ikegami (Patriarch) on Apr 21, 2009 at 15:27 UTC | |
Re: monkey patching an entire module
by krishnoid (Novice) on Apr 22, 2009 at 01:17 UTC | |
Re: monkey patching an entire module
by pileofrogs (Priest) on Apr 22, 2009 at 14:32 UTC | |
by Bloodnok (Vicar) on Apr 22, 2009 at 14:41 UTC | |
by Argel (Prior) on Apr 22, 2009 at 22:20 UTC | |
Re: monkey patching an entire module
by pileofrogs (Priest) on Apr 22, 2009 at 15:57 UTC | |
Re: monkey patching an entire module
by Anonymous Monk on Apr 21, 2009 at 15:28 UTC | |
by wol (Hermit) on Apr 22, 2009 at 13:39 UTC |