diff options
author | abela@geneanet.org <abela@geneanet.org> | 2001-03-01 18:59:27 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-02 15:17:16 +0000 |
commit | fc518ee5e30bfe6cf39d02fcdfa0be9240095c4a (patch) | |
tree | e27f06baf9c1d701143e0d07dcd06a0778c2176b /pod/perldata.pod | |
parent | f4c2dd42fd6491c4c82ec9dadd37527c8e802e7e (diff) | |
download | perl-fc518ee5e30bfe6cf39d02fcdfa0be9240095c4a.tar.gz |
[ID 20010301.004] Technically speaking in perldata
Message-Id: <20010301165927.262C2D17D@little-roots.geneanet.org>
p4raw-id: //depot/perl@8979
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index 50b685816e..1744ff7fc9 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -209,9 +209,9 @@ with a regular expression (as documented in L<perlre>). 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<csh>. 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<csh>. 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 |