Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Perl "new" commandby Erez (Priest) |
on Mar 01, 2012 at 09:26 UTC ( [id://957134]=note: print w/replies, xml ) | Need Help?? |
n Perl the constructor doesn't have to be named "new" In Perl no, but OO frameworks like Moose and its derivatives have adopted this convention and use "new" for object instantiation. Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert
In Section
Seekers of Perl Wisdom
|
|