Do you know where your variables are? | |
PerlMonks |
Re^4: OOP By Any Other Nameby tilly (Archbishop) |
on Feb 26, 2011 at 03:02 UTC ( [id://890260]=note: print w/replies, xml ) | Need Help?? |
Declaring the anonymous subs in the constructor may make sense to someone who has a lot of JavaScript experience. At that point it isn't really much different than thinking of the constructor as the class definition. Which can scale perfectly well as long as you are used to it, and have support for the other niceties that people expect from OO code. (Like some notion of inheritance and composition.)
In Section
Seekers of Perl Wisdom
|
|