diff options
author | Kay Röpke <kroepke@dolphin-services.de> | 2002-07-09 16:12:10 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-09 22:36:27 +0000 |
commit | 2bc6235c05b89ccf6657edc09a1d622eb191a37e (patch) | |
tree | 6340a195788917db576d32e8389a566a6723c33c /op.c | |
parent | 86c43dd63e0dc780f3f954e6c43e51a7a748e5a7 (diff) | |
download | perl-2bc6235c05b89ccf6657edc09a1d622eb191a37e.tar.gz |
Fwd: [ID 20020703.002] bareword processing bug under 'use strict'
Message-Id: <184F11EC-9335-11D6-8F80-000393414688@dolphin-services.de>
p4raw-id: //depot/perl@17457
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3977,6 +3977,10 @@ Perl_newCONDOP(pTHX_ I32 flags, OP *first, OP *trueop, OP *falseop) scalarboolean(first); if (first->op_type == OP_CONST) { + if (first->op_private & OPpCONST_BARE && + first->op_private & OPpCONST_STRICT) { + no_bareword_allowed(first); + } if (SvTRUE(((SVOP*)first)->op_sv)) { op_free(first); op_free(falseop); |