Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: A novice's thoughts on applying Demeter to extension codeby dragonchild (Archbishop) |
on Nov 22, 2004 at 20:34 UTC ( [id://409727]=note: print w/replies, xml ) | Need Help?? |
Update: Of course, it would help if I actually remembered that sub PACKAGE::name {} is legal syntax. *sighs* It's Monday.
What about plugging in your new logic into the original namespace? Put that into Employee/MyStuff.pm and you're good to go. Of course, you're now fiddling with the internals of a class you don't control, which means that you're violating encapsulation. You also, everywhere you use Employee, have to now do: In that order would be preferable (though not absolutely required). This is a somewhat common thing to do on CPAN. (q.v. URI and URI::QueryParam for a good example of this) Being right, does not endow the right to be rude; politeness costs nothing.
In Section
Meditations
|
|