Would Larry do something that stupid? ;-)
The code you have will work fine, without creating a duplicate array. You can also get the highest index in the array with $#$aref, which, if you haven't changed the default least index from 0 (by setting $[) will be one less than the number of elements in the array.
In reply to Re: size of array from ref
by VSarkiss
in thread size of array from ref
by nop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |