diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-06-09 21:24:01 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-06-09 21:24:01 -0700 |
commit | fad4a2e4a4e2d22bf0b29de7f20808f0a01e79a2 (patch) | |
tree | f6b51a40b445bc5fa5ddd5159e0b5422935eba82 /pod | |
parent | 6a8709a60c31d74562d0cb240c7a34a5768b3a94 (diff) | |
download | perl-fad4a2e4a4e2d22bf0b29de7f20808f0a01e79a2.tar.gz |
Scalar keys assignment through lvalue subs
This used not to work:
sub foo :lvalue { keys %wallet }
foo = 37;
Now it does. It was just a matter of following the right code path in
op_lvalue when the parent op is a leavesublv instead of a sassign.
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldelta.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 9994b52b63..98abe963bb 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -707,6 +707,11 @@ thing returned from the subroutine (but not for C<$scalar, @array> or hashes being returned). Now a more general fix has been applied [RT #23790]. +=item * + +Assignment to C<keys> returned from an lvalue sub used not to work, but now +it does. + =back =item * |