summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorKay Röpke <kroepke@dolphin-services.de>2002-07-09 16:12:10 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-09 22:36:27 +0000
commit2bc6235c05b89ccf6657edc09a1d622eb191a37e (patch)
tree6340a195788917db576d32e8389a566a6723c33c /op.c
parent86c43dd63e0dc780f3f954e6c43e51a7a748e5a7 (diff)
downloadperl-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/op.c b/op.c
index 0a8c0a2534..5a60a1cd8d 100644
--- a/op.c
+++ b/op.c
@@ -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);