diff options
author | Dave Rolsky <autarch@urth.org> | 2012-12-17 15:32:35 -0600 |
---|---|---|
committer | Dave Rolsky <autarch@urth.org> | 2012-12-18 15:58:31 -0600 |
commit | b814314165fad7b24f22e35a02fda5689e00dc2a (patch) | |
tree | 020d65ed61038be912114bf23c90d990080a8b03 | |
parent | 3459a26e7c37af7fd4c309df215cf222d2d3de65 (diff) | |
download | perl-b814314165fad7b24f22e35a02fda5689e00dc2a.tar.gz |
Better description of hash assignment bug fixes
-rw-r--r-- | pod/perldelta.pod | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 3f0edff78a..a2392a2ae2 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -361,7 +361,8 @@ _charnames from loading via C<$INC{'_charnames.pm'}++>. =item * -A number of bugs related to hash assignment have been fixed: +A number of bugs related to assigning a list to hash have been fixed. Many of +these involve lists with repeated keys like C<(1, 1, 1, 1)>. =over 8 @@ -371,13 +372,13 @@ The expression C<scalar(%h = (1, 1, 1, 1))> now returns C<4>, not C<2>. =item - -Perl now issues the same warning on C<($s, %h) = (1, {})> as it does for -C<(%h) = ({})>, "Reference found where even-sized list expected". +The return value of C<%h = (1, 1, 1)> in list context was wrong. Previously +this would return C<(1, undef, 1)>, now it returns C<(1, undef)>. =item - -The return value of C<%h = (1, 1, 1)> in list context was wrong. Previously -this would return C<(1, undef, 1)>, not it returns C<(1, undef)>. +Perl now issues the same warning on C<($s, %h) = (1, {})> as it does for +C<(%h) = ({})>, "Reference found where even-sized list expected". =item - |