Perl Monk, Perl Meditation | |
PerlMonks |
Re^4: Object method prototypes?by ysth (Canon) |
on Dec 14, 2007 at 05:22 UTC ( [id://656988]=note: print w/replies, xml ) | Need Help?? |
No, actually, passing a new anonymous hashref creates and destroys a hash with every call, while having a my %args in the method does not. (The space allocated for the lexical hash is retained across calls whenever possible.)
In Section
Seekers of Perl Wisdom
|
|