There is a difference between "for" and "foreach", but it really doesn't matter in this example
Care to elaborate? perlsyn#foreach says
The "foreach" keyword is actually a synonym for the "for" keyword, so you can use "foreach" for readability or "for" for brevity.
In reply to Re^2: catastrophic near misses in Perl
by FunkyMonk
in thread catastrophic near misses in Perl
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |