in reply to For Syntax Question

Run it through B::Deparse to see how perl sees it:

$ perl -MO=Deparse -e '$foo += $_ for @e;' ; foreach $_ (@e) { $foo += $_; } -e syntax OK

As the output shows, that line is exactly the same as if you had used foreach $_ (@e) { . . .. Taking the for to the end of the line just allows you to cram it into one statement, for better or worse.

----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.