summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>1997-09-16 09:47:28 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-03-02 03:01:27 +0000
commitecca16b0cfe0c7f04ba520f2924946a13507530e (patch)
tree24ae5b5a1830dddf285dc713d84023901e907fd8 /toke.c
parentdab48698179b4e8606409875b7121f225bcf46be (diff)
downloadperl-ecca16b0cfe0c7f04ba520f2924946a13507530e.tar.gz
[win32] yet another patch
Message-Id: <199709161748.NAA08418@nielsenmedia.com> Subject: Tiny but massively cool: C<statement foreach @list> p4raw-id: //depot/win32/perl@612
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index e6a740b3e2..0097e6ceb4 100644
--- a/toke.c
+++ b/toke.c
@@ -3074,7 +3074,7 @@ yylex(void)
case KEY_foreach:
yylval.ival = curcop->cop_line;
s = skipspace(s);
- if (isIDFIRST(*s)) {
+ if (expect == XSTATE && isIDFIRST(*s)) {
char *p = s;
if ((bufend - p) >= 3 &&
strnEQ(p, "my", 2) && isSPACE(*(p + 2)))