$#array is perfectly acceptable for getting the value of @array's last index (i.e., the subscript of the last element).
In reply to Re: Is using $#array Frowned on?
by Kenosis
in thread Is using $#array Frowned on?
by doubleqq
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |