This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add the Perl equivalent for av_len.
authorShlomi Fish <shlomif@iglu.org.il>
Wed, 19 May 2010 17:11:03 +0000 (20:11 +0300)
committerDavid Golden <dagolden@cpan.org>
Tue, 25 May 2010 16:15:01 +0000 (12:15 -0400)
Signed-off-by: David Golden <dagolden@cpan.org>
av.c

diff --git a/av.c b/av.c
index 6e08454..de57aac 100644 (file)
--- a/av.c
+++ b/av.c
@@ -721,6 +721,8 @@ Perl_av_shift(pTHX_ register AV *av)
 Returns the highest index in the array.  The number of elements in the
 array is C<av_len(av) + 1>.  Returns -1 if the array is empty.
 
+The Perl equivalent for this is C<$#myarray>.
+
 =cut
 */