summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRobin Houston <robin@cpan.org>2001-12-06 14:44:01 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-06 15:08:40 +0000
commit5cc9e5c9d4584574ed7c24896215a21bdd0fd4b2 (patch)
treee1c087614ad4ca2c85a89f881f831fe0ffcdcfc8 /op.c
parent3fcc9feac9b4526c9e0fb8c6850f10447473b930 (diff)
downloadperl-5cc9e5c9d4584574ed7c24896215a21bdd0fd4b2.tar.gz
Re: weirdness in regexps
Message-ID: <20011206144401.A27752@puffinry.freeserve.co.uk> p4raw-id: //depot/perl@13490
Diffstat (limited to 'op.c')
-rw-r--r--op.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/op.c b/op.c
index 85ff67b2b6..d633b479cb 100644
--- a/op.c
+++ b/op.c
@@ -2053,6 +2053,13 @@ Perl_bind_match(pTHX_ I32 type, OP *left, OP *right)
desc, sample, sample);
}
+ if (right->op_type == OP_CONST &&
+ cSVOPx(right)->op_private & OPpCONST_BARE &&
+ cSVOPx(right)->op_private & OPpCONST_STRICT)
+ {
+ no_bareword_allowed(right);
+ }
+
if (!(right->op_flags & OPf_STACKED) &&
(right->op_type == OP_MATCH ||
right->op_type == OP_SUBST ||