in reply to size of array from ref
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.
|
|---|