This [distinction between for and foreach] is ... beside the point ...
Given that Linguist identifies him- or herself as "... new to PERL ...", I think ww's point is very apt. As used above, the for versus foreach distinction is a bit of Perl jargon that needs to be identified as such to the novice Perler. If it is not, it leads to questions like "Ok, so what's the difference between for and foreach?" This is a question on a par with "When is a door not a door?", except it has no amusing punchline; instead, there is only the tragic realization that you've just thrown away a few-score seconds of your life pondering a stupid question.
I had originally not up-voted ww's posts on this point, but have now done so as a show of solidarity forever! against jargon masquerading as idiom.
In reply to Re^4: looping in 2d array
by AnomalousMonk
in thread looping in 2d array
by Linguist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |