Probably what you want is $#$users. The oA bit doesn't matter. It's the fact that you have a reference to the array that is giving you grief.
use strict; use warnings; my $users = [(0..7)]; print $#$users;
Prints:
7
In reply to Re: What way to weigh an AoA?
by GrandFather
in thread What way to weigh an AoA?
by SamCG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |