summaryrefslogtreecommitdiff
path: root/perly.y
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 /perly.y
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 'perly.y')
-rw-r--r--perly.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/perly.y b/perly.y
index d007bc0f8c..7eda39e82f 100644
--- a/perly.y
+++ b/perly.y
@@ -153,6 +153,9 @@ sideff : error
{ $$ = newLOOPOP(OPf_PARENS, 1, scalar($3), $1); }
| expr UNTIL iexpr
{ $$ = newLOOPOP(OPf_PARENS, 1, $3, $1);}
+ | expr FOR expr
+ { $$ = newFOROP(0, Nullch, $2,
+ Nullop, $3, $1, Nullop); }
;
else : /* NULL */