|XP is just a number|
It's not meaningless when the perldocs refer to For Loops and Foreach Loops. They also mention that
The foreach keyword is actually a synonym for the for keyword, so you can use foreach for readability or for for brevity. (Or because the Bourne shell is more familiar to you than csh, so writing for comes more naturally.)So the correct response to : "What is the difference between for and foreach?" is "The keywords or the loop structures?"
It's an English problem.
"But what of all those sweet words you spoke in private?"
"Oh that's just what we call pillow talk, baby, that's all."