diff options
author | Gerard Goossen <gerard@tty.nl> | 2008-03-10 16:44:03 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-03-10 21:34:23 +0000 |
commit | 27aaedc17a97efc227bf59e642a1a074461e266d (patch) | |
tree | 4abc8401278238ba808a4db7b3ebd9f7a18e55f5 /op.c | |
parent | 58a97135f419acbdcb88dba507c236c50a193268 (diff) | |
download | perl-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.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; |