{QandAEditor note-- Summarizing a followup to this node: $#array is the index of the last element in @array. #, in this case, doesn't begin a comment.
$#array is not necessarily equal to scalar @array - 1. Use @array in scalar context to determine the size of an array. Use $#array when determining the index number of the last element of @array. }
In reply to Re: How do I find the size of an array?
by usless_blonde
in thread How do I find the size of an array?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |