http://www.perlmonks.org?node_id=1007908


in reply to Re^3: new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )
in thread new keyword "size" to avoid scalar trap ? ( scalar @array != scalar(LIST) )

Thats why we need prototypes or a special C-implementaton.

according to the perlsub sub size (+;@) { } could be used, to call

 size @array

or

 size 1,2,3

but since I'm using 5.10, I can't test it...

Cheers Rolf