From a6642c724ba3d83b31349dfd9e0e569fa13e96e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 26 Nov 2011 23:07:15 +0000 Subject: [PATCH] pod/perlintro: mention that "foreach" is really a synonym for "for" The perlintro section on for/foreach would have you believe that "for" is always C-style and "foreach" is always Perl-style. This isn't actually the case, so link to the perlsyn section that covers that. --- pod/perlintro.pod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pod/perlintro.pod b/pod/perlintro.pod index 5e2fe5c..5a84f32 100644 --- a/pod/perlintro.pod +++ b/pod/perlintro.pod @@ -407,6 +407,9 @@ the more friendly list scanning C loop. print "The value of $key is $hash{$key}\n"; } +The C keyword is actually a synonym for the C +keyword. See C. + =back For more detail on looping constructs (and some that weren't mentioned in -- 2.7.4