in reply to Last element index with array refs
I'm have an array of arrays in which I am trying to find the number of indices for any of the referenced arrays(they should all be the same).
Well, that's not what the title of your node asks for, but it is easy enough...
To get what the title asks for, the last element index, you can use...my @AoA = ( [1,3,5,7] ); print scalar @{$AoA[0]}; # 4
print $#{$AoA[0]}; # 3
-sauoq "My two cents aren't worth a dime.";
|
|---|