This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make lvalue return make the same checks as leavesublv
authorFather Chrysostomos <sprout@cpan.org>
Thu, 23 Jun 2011 05:58:45 +0000 (22:58 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 23 Jun 2011 13:04:03 +0000 (06:04 -0700)
commitd25b0d7b851633ad047adf5acb71da838d99de68
tree268c8e736260e8005d912070f7f626dd7286fbc2
parent50e9a4a73ae0d7fd56e72d5cd3befa63d9ebaa7b
Make lvalue return make the same checks as leavesublv

This causes explicit return in lvalue context to die the way implicit
return does.  See the tests and the perldelta entry in the diff.
pod/perldelta.pod
pp_ctl.c
t/op/sub_lval.t