summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGerard Goossen <gerard@tty.nl>2008-03-10 16:44:03 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-03-10 21:34:23 +0000
commit27aaedc17a97efc227bf59e642a1a074461e266d (patch)
tree4abc8401278238ba808a4db7b3ebd9f7a18e55f5 /op.c
parent58a97135f419acbdcb88dba507c236c50a193268 (diff)
downloadperl-27aaedc17a97efc227bf59e642a1a074461e266d.tar.gz
Re: [PATCH] MAD fix p55 $[
Message-ID: <20080310144403.GC28994@ostwald> p4raw-id: //depot/perl@33467
Diffstat (limited to 'op.c')
-rw-r--r--op.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/op.c b/op.c
index 8ea3fd81d4..db2a67bba7 100644
--- a/op.c
+++ b/op.c
@@ -4335,10 +4335,11 @@ Perl_newASSIGNOP(pTHX_ I32 flags, OP *left, I32 optype, OP *right)
if (PL_eval_start)
PL_eval_start = 0;
else {
- /* FIXME for MAD */
- op_free(o);
- o = newSVOP(OP_CONST, 0, newSViv(CopARYBASE_get(&PL_compiling)));
- o->op_private |= OPpCONST_ARYBASE;
+ if (!PL_madskills) { /* assignment to $[ is ignored when making a mad dump */
+ op_free(o);
+ o = newSVOP(OP_CONST, 0, newSViv(CopARYBASE_get(&PL_compiling)));
+ o->op_private |= OPpCONST_ARYBASE;
+ }
}
}
return o;