Keep It Simple, Stupid | |
PerlMonks |
Re: Passing reference to subroutineby aukjan (Friar) |
on Oct 03, 2008 at 06:33 UTC ( [id://715148]=note: print w/replies, xml ) | Need Help?? |
Actually $#var gives you the subscript of the last item in the list, the scalar value of @var gives you the number of elements in the list. So if you want the number of elements in a list reference, you can get it by:
In Section
Seekers of Perl Wisdom
|
|