|Syntactic Confectionery Delight|
The correct way to redefine a routineby punkish (Priest)
|on Mar 28, 2008 at 17:38 UTC||Need Help??|
punkish has asked for the
wisdom of the Perl Monks concerning the following question:
I install Foo:Bar from CPAN (perl -MCPAN -eshell, etc.). I write my code --
Then I discover that $baz->do_magic does about 90% of what I want. So, I want to modify it, but I don't want to tinker with the Foo::Bar code. I do the following in my package.
Question: Is this the right way? Perl does complain and tell me that do_magic has been redefined, but yeah, that's what I did. If this is not a good way, what is the better way?
when small people start casting long shadows, it is time to go to bed