summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-09-06 19:10:41 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-09-06 19:10:41 +0000
commit1291a1920c36dc45039a0acbf53957ff30304657 (patch)
tree34c5ac548cb86f35402650f061611e64bb5debc1 /pp.c
parent982ce1809751a8e19a5bbe5feaae6f223efd3485 (diff)
parent661cc6a69914a4799f8042e90d1df51291595d57 (diff)
downloadperl-1291a1920c36dc45039a0acbf53957ff30304657.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4091
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 081d4b4e54..7f4cdc4f6a 100644
--- a/pp.c
+++ b/pp.c
@@ -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;