summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-10-18 17:00:29 +0100
committerDavid Mitchell <davem@iabyn.com>2013-10-18 17:00:29 +0100
commitd04bf9eb48f4d379a58de5e8ba2f6fbd17b7d27a (patch)
tree69e5eebc312267d5a1512ca41d4feb8d3dc0ddc3
parent61bc22580524a6d92bf31b2046baa6dcc4e400d4 (diff)
downloadperl-d04bf9eb48f4d379a58de5e8ba2f6fbd17b7d27a.tar.gz
add comment to foreach toking code
to make it clear what its doing.
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 1ab57f332c..eb9d71fcd5 100644
--- a/toke.c
+++ b/toke.c
@@ -8034,6 +8034,7 @@ Perl_yylex(pTHX)
strnEQ(p, "our", 3) && isSPACE(*(p + 3)))
p += 3;
p = PEEKSPACE(p);
+ /* skip optional package name, as in "for my abc $x (..)" */
if (isIDFIRST_lazy_if(p,UTF)) {
p = scan_word(p, PL_tokenbuf, sizeof PL_tokenbuf, TRUE, &len);
p = PEEKSPACE(p);