summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorMike Guy <mjtg@cam.ac.uk>2000-08-14 09:04:22 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-14 13:58:45 +0000
commit03a27ae7a2d77f4526cc8f95901f616c50fdc14b (patch)
tree93c9e1c66e63be081d2f6d955aaa6abc7d7284e1 /gv.c
parent208edb77a29d217fb751c222223477b9e3fc3fd6 (diff)
downloadperl-03a27ae7a2d77f4526cc8f95901f616c50fdc14b.tar.gz
@+, @- readonly (was Re: @<punct> interpolating in "")
Message-Id: <E13OEII-0007B2-00@libra.cus.cam.ac.uk> p4raw-id: //depot/perl@6615
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index 836fdb23d2..6dc45e7450 100644
--- a/gv.c
+++ b/gv.c
@@ -819,6 +819,7 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
else {
AV* av = GvAVn(gv);
sv_magic((SV*)av, Nullsv, 'D', Nullch, 0);
+ SvREADONLY_on(av);
}
goto magicalize;
case '#':
@@ -869,6 +870,7 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
else {
AV* av = GvAVn(gv);
sv_magic((SV*)av, (SV*)av, 'D', Nullch, 0);
+ SvREADONLY_on(av);
}
/* FALL THROUGH */
case '1':