diff options
author | David Mitchell <davem@iabyn.com> | 2016-10-26 09:51:57 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2016-10-26 09:51:57 +0100 |
commit | 2f4cbc090a480b0d02b4e74258b553c7998e45eb (patch) | |
tree | 0cbfef81cf3a907393e73019f9db60752ae50cf4 /pod | |
parent | 47ff51ce83dcde3c982b2c6c5606b7f839ac210e (diff) | |
download | perl-2f4cbc090a480b0d02b4e74258b553c7998e45eb.tar.gz |
Add perldelta entries for
8b0c3377906a6f991cd6c21a674bf9561d85e3cb
b09ed995add057b8e0b51964b48ef1d1cc3c9c91
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldelta.pod | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 062c66f17a..9bef25792a 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -89,7 +89,12 @@ There may well be none in a stable release. =item * -XXX +Array and hash assignment are now faster, e.g. + + (..., @a) = (...); + (..., %h) = (...); + +especially when the RHS is empty. =back @@ -338,7 +343,17 @@ files in F<ext/> and F<lib/> are best summarized in L</Modules and Pragmata>. =item * -XXX +List assignment in list context where the LHS contained aggregates and +where there were not enough RHS elements, used to skip scalar lvalues. +Previously, C<(($a,$b,@c,$d) = (1))> in list context returned C<($a)>; now +it returns C<($a,$b,$d)>. C<(($a,$b,$c) = (1))> is unchanged: it still +returns <($a,$b,$c)>. This can be seen in the following: + + sub inc { $_++ for @_ } + inc(($a,$b,@c,$d) = (10)) + +Formerly, the values of C<($a,$b,$d)> would be left as C<(11,undef,undef)>; +now they are C<(11,1,1)>. =back |