Bug#722636: mention how to use $# sigil with array references

Russ Allbery rra at debian.org
Fri Sep 13 00:34:06 UTC 2013


jidanni at jidanni.org writes:

> By the way, curious as to where $# itself is documented, on man perlvar
> we see

>                ...not the sigil you use in front of an array name to get
>                the last index, like $#array.  That's still how you get the
>                last index of an array in Perl...

> but apparently no better mention in all of the perl man pages.

It's documented in perldata under Scalar Values, about seven paragraphs
down.  (And yeah, it's not horribly easy to find.)

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>




More information about the Perl-maintainers mailing list