diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-06 19:10:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-06 19:10:41 +0000 |
commit | 1291a1920c36dc45039a0acbf53957ff30304657 (patch) | |
tree | 34c5ac548cb86f35402650f061611e64bb5debc1 /pp.c | |
parent | 982ce1809751a8e19a5bbe5feaae6f223efd3485 (diff) | |
parent | 661cc6a69914a4799f8042e90d1df51291595d57 (diff) | |
download | perl-1291a1920c36dc45039a0acbf53957ff30304657.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4091
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -406,6 +406,8 @@ PP(pp_rv2cv) if (cv) { if (CvCLONE(cv)) cv = (CV*)sv_2mortal((SV*)cv_clone(cv)); + if ((PL_op->op_private & OPpLVAL_INTRO) && !CvLVALUE(cv)) + Perl_croak(aTHX_ "Can't modify non-lvalue subroutine call"); } else cv = (CV*)&PL_sv_undef; |