This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
94a37a2
)
perldata: #109408
author
Brian Fraser
<fraserbn@gmail.com>
Wed, 1 Feb 2012 02:38:03 +0000
(23:38 -0300)
committer
Father Chrysostomos
<sprout@cpan.org>
Wed, 27 Jun 2012 15:34:25 +0000
(08:34 -0700)
pod/perldata.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perldata.pod
b/pod/perldata.pod
index
c89b675
..
3a4776c
100644
(file)
--- a/
pod/perldata.pod
+++ b/
pod/perldata.pod
@@
-232,8
+232,7
@@
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
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
-that were in those elements. (It used to do so in Perl 4, but we
-had to break this to make sure destructors were called when expected.)
+that were in those elements.
X<$#> X<array, length>
You can also gain some minuscule measure of efficiency by pre-extending
X<$#> X<array, length>
You can also gain some minuscule measure of efficiency by pre-extending