|
|
| XP is just a number | |
| PerlMonks |
Re^2: new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )by LanX (Monsignor) |
| on Dec 07, 2012 at 17:28 UTC ( #1007802=note: print w/ replies, xml ) | Need Help?? |
|
I care less about the name than the functionality, could be also "count" or whatever suits. I suppose "elems" is already known from ruby or perl6? So why not.¹ But² tobyinks and your suggestion w/o prototypes is considerably slower on large arrays.
Perl 5.10! Cheers Rolf ¹) Well the plural in "elems" somehow indicates a list to be returned.
In Section
Meditations
|
|
||||||||||||||||||||||||||