#17931 checked for wrong constant
Hugo van der Sanden [Thu, 26 Sep 2002 16:47:32 +0000 (16:47 +0000)]
p4raw-id: //depot/perl@17932

op.c

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