From: Hugo van der Sanden <hv@crypt.org>
Date: Thu, 26 Sep 2002 16:47:32 +0000 (+0000)
Subject: #17931 checked for wrong constant
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6d5637c3050c14fb5c11ec5a05db33dce9e4a7a8;p=p5sagit%2Fp5-mst-13.2.git

#17931 checked for wrong constant

p4raw-id: //depot/perl@17932
---

diff --git a/op.c b/op.c
index 75d642f..362dd00 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");