![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: adding temporary method to a classby jdporter (Chancellor) |
on Sep 20, 2006 at 17:53 UTC ( #573962=note: print w/replies, xml ) | Need Help?? |
The approach shown above is a nice "lightweight" solution. If you wanted to be more industrial-grade about it, you could make a derived class which adds the new method. Delegation is another possibility.
We're building the house of the future together.
In Section
Seekers of Perl Wisdom
|
|