This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make pp_leavesublv switch based on gimme
authorFather Chrysostomos <sprout@cpan.org>
Thu, 23 Jun 2011 01:59:02 +0000 (18:59 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 23 Jun 2011 13:04:01 +0000 (06:04 -0700)
commit943d76f23b94ab9adf16ba9537d0c969a62828c6
tree71365db931b891ebeb7e0111376e802a878f3b5f
parent18beaace84297ebbc2de887d89c743e3502c0cd2
Make pp_leavesublv switch based on gimme

Put if(gimme == ...) on the outside and if(CxLVAL(cx)...) on the
inside.  This reduces the amount of code, since the OPpENTERSUB_INARGS
case and the !CxLVAL case were both doing the same thing for scalars.
pp_ctl.c