Forbid to use "foreach" as an attribute
Rafael Garcia-Suarez [Sat, 14 Feb 2009 09:04:07 +0000 (10:04 +0100)]
(like all other control flow statements)

toke.c

diff --git a/toke.c b/toke.c
index 951c1ca..3c3e0ad 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -4337,6 +4337,7 @@ Perl_yylex(pTHX)
                    case KEY_or:
                    case KEY_and:
                    case KEY_for:
+                   case KEY_foreach:
                    case KEY_unless:
                    case KEY_if:
                    case KEY_while: