From b985ae615210d15bfa67bddb2118de1c02c21935 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 15 Nov 2013 13:40:03 -0700 Subject: PATCH: [perl #120386]: av_len documentation I think I have incorporated everybody's concerns in this patch. --- av.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'av.c') diff --git a/av.c b/av.c index c08d2c2d3f..0602525a45 100644 --- a/av.c +++ b/av.c @@ -760,11 +760,16 @@ The Perl equivalent for this is C<$#myarray>. (A slightly shorter form is C.) +=for apidoc av_tindex + +Same as L. + =for apidoc av_len -Same as L. Returns the highest index in the array. Note that the -return value is +1 what its name implies it returns; and hence differs in -meaning from what the similarly named L returns. +Same as L. Note that, unlike what the name implies, it returns +the highest index in the array, so to get the size of the array you need to use +S>. This is unlike L, which returns what you would +expect. =cut */ -- cgit v1.2.1