The stupid question is the question not asked | |
PerlMonks |
Re^2: Referencing Subroutines through a packageby ikegami (Patriarch) |
on Aug 16, 2009 at 09:17 UTC ( [id://788994]=note: print w/replies, xml ) | Need Help?? |
I disagree. I think it's worse. I'll explain, but let's complete the code first. The solution from the first post:
The solution you propose:
The problem is that you're getting the method of one object and you're calling it with a different object. Bad! If they aren't different object, then you have redundant code. Bad! The following would be a better version of your solution:
This revised solution and the one from the first post are equally good.
In Section
Seekers of Perl Wisdom
|
|