summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-09-11 09:57:33 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-09-11 09:57:33 +0000
commiteca06228e735e9cbc213af2862732d91a7609dec (patch)
tree4ba236a733e71c183f0076bd6466d8d2955e9d75 /pp_hot.c
parent9811a09ccbe459f08959a12230024bdfb9a9977f (diff)
downloadperl-eca06228e735e9cbc213af2862732d91a7609dec.tar.gz
Point fix for s/// on foreach (keys %xxx).
p4raw-id: //depot/perl@7049
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 6f0fd7c7e8..ba8180582a 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1785,6 +1785,8 @@ PP(pp_subst)
TARG = DEFSV;
EXTEND(SP,1);
}
+ if (SvFAKE(TARG) && SvREADONLY(TARG))
+ sv_force_normal(TARG);
if (SvREADONLY(TARG)
|| (SvTYPE(TARG) > SVt_PVLV
&& !(SvTYPE(TARG) == SVt_PVGV && SvFAKE(TARG))))