summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2002-09-26 16:47:32 +0000
committerhv <hv@crypt.org>2002-09-26 16:47:32 +0000
commit6d5637c3050c14fb5c11ec5a05db33dce9e4a7a8 (patch)
tree2e2a74fb40532f19e27612bdf0b86ae8323fdbce /op.c
parent989dfb198ac9ac51842b1c51f1d0abd5c0143573 (diff)
downloadperl-6d5637c3050c14fb5c11ec5a05db33dce9e4a7a8.tar.gz
#17931 checked for wrong constant
p4raw-id: //depot/perl@17932
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 75d642f0e3..362dd00dad 100644
--- a/op.c
+++ b/op.c
@@ -3884,7 +3884,7 @@ S_new_logop(pTHX_ I32 type, I32 flags, OP** firstp, OP** otherp)
}
if (first->op_type == OP_CONST) {
if (ckWARN(WARN_BAREWORD) && (first->op_private & OPpCONST_BARE)) {
- if (first->op_private & OPpCONST_BARE)
+ if (first->op_private & OPpCONST_STRICT)
no_bareword_allowed(first);
else
Perl_warner(aTHX_ packWARN(WARN_BAREWORD), "Bareword found in conditional");