in reply to Packages with subs using fully qualified class names, not always their own.
The problem (if not properly done) are uncontrollable distant effects, because these changes are global, and another module in the same runtime using the same "parent" class might be sabotaged by the changes.
Contrary to this subclassing will only effect the subclass.
I'm using monkey patching in one of my modules, but took care to localize it.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|