in reply to Just a quick note...
in thread map, grep, for, foreach
C:\>perl -MO=Deparse -e "print for (1..10);print foreach (1..10);" foreach $_ (1 .. 10) { print $_; } foreach $_ (1 .. 10) { print $_; } -e syntax OK
OK, I'm confused. They parse identically.
Do you mean 'C-style' for loops (for (i=1;i++;i<11))vs 'perl-style' for loops? If so, what you describe is documented in perlsyn.
If not, what do you mean?
In Section
Seekers of Perl Wisdom