From: abela@geneanet.org Date: Thu, 1 Mar 2001 17:59:27 +0000 (+0100) Subject: [ID 20010301.004] Technically speaking in perldata X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc518ee5e30bfe6cf39d02fcdfa0be9240095c4a;p=p5sagit%2Fp5-mst-13.2.git [ID 20010301.004] Technically speaking in perldata Message-Id: <20010301165927.262C2D17D@little-roots.geneanet.org> p4raw-id: //depot/perl@8979 --- diff --git a/pod/perldata.pod b/pod/perldata.pod index 50b6858..1744ff7 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -209,9 +209,9 @@ with a regular expression (as documented in L). unless /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/; The length of an array is a scalar value. You may find the length -of array @days by evaluating C<$#days>, as in B. Technically -speaking, this isn't the length of the array; it's the subscript -of the last element, since there is ordinarily a 0th element. +of array @days by evaluating C<$#days>, as in B. However, this +isn't the length of the array; it's the subscript of the last element, +which is a different value since there is ordinarily a 0th element. Assigning to C<$#days> actually changes the length of the array. Shortening an array this way destroys intervening values. Lengthening an array that was previously shortened does not recover values