in reply to How do I find the size of an array?
{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. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How do I find the size of an array?
by DrHyde (Prior) on Oct 14, 2003 at 15:23 UTC |