develooper Front page | perl.perl5.porters | Postings from October 2013

Re: [perl #120386] av_len documentation

Thread Previous | Thread Next
From:
Steffen Mueller
Date:
October 28, 2013 05:37
Subject:
Re: [perl #120386] av_len documentation
Message ID:
526DF820.4040605@cpan.org
On 10/27/2013 10:56 PM, root@mail.nethype.de (via RT) wrote:
> Or maybe even less confusing:
>
>     Note that, unlike the name implies, it returns the highest index in the array, so to get the size
>     of the array you need to use C<av_len (av) + 1>.

That sounds like and improvement to me.

--Steffen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About