summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-02-23 01:03:27 +0100
committerhv <hv@crypt.org>2003-02-25 13:21:19 +0000
commit82d039840b913b4eed10833ac05709a5abd02ead (patch)
treeae3a2ac26b28aad8ed1101a8116768f0ecc06da3 /pp_hot.c
parentcc7dbc11d7cd9ed68bb2fbc677f60586de194a05 (diff)
downloadperl-82d039840b913b4eed10833ac05709a5abd02ead.tar.gz
Re: [perl #21321] local ${"FOO"} does not work
Message-Id: <20030223000327.6f0c11fa.rgarciasuarez@free.fr> p4raw-id: //depot/perl@18774
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 299190046c..c82b2df947 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -685,6 +685,9 @@ PP(pp_rv2av)
SETs((SV*)av);
RETURN;
}
+ else if (PL_op->op_flags & OPf_MOD
+ && PL_op->op_private & OPpLVAL_INTRO)
+ Perl_croak(aTHX_ PL_no_localize_ref);
}
else {
if (SvTYPE(sv) == SVt_PVAV) {
@@ -809,6 +812,9 @@ PP(pp_rv2hv)
SETs((SV*)hv);
RETURN;
}
+ else if (PL_op->op_flags & OPf_MOD
+ && PL_op->op_private & OPpLVAL_INTRO)
+ Perl_croak(aTHX_ PL_no_localize_ref);
}
else {
if (SvTYPE(sv) == SVt_PVHV) {