diff options
author | Dan Book <grinnz@grinnz.com> | 2020-04-09 14:27:35 -0400 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-05-20 09:14:38 -0600 |
commit | ec89cf10fbe40da4631926631340a9f0d9e49f6a (patch) | |
tree | 6331f36f90574f51e6173cd685a023ace5ab572d | |
parent | 6c89e88178e2f64e5c72f45a89073da1556f8eec (diff) | |
download | perl-ec89cf10fbe40da4631926631340a9f0d9e49f6a.tar.gz |
perlsyn - Mention that postfix foreach cannot specify a lexical variable
-rw-r--r-- | pod/perlsyn.pod | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 6cd253ae22..89a68ce888 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -145,6 +145,8 @@ L<perldata/Scalar values> for definitions of true and false. The C<for(each)> modifier is an iterator: it executes the statement once for each item in the LIST (with C<$_> aliased to each item in turn). +There is no syntax to specify a C-style for loop or a lexically scoped +iteration variable in this form. print "Hello $_!\n" for qw(world Dolly nurse); |