perlsyn says:
The foreach keyword is actually a synonym for the for keyword, so you can use foreach for readability or for for brevity.Update: I now see the link to for vs foreach was already mentioned by n8g above.
In reply to Re: Difference between for and foreach
by andreas1234567
in thread Difference between for and foreach
by dilip_val
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |