![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^8: Interview Preprationby RazorbladeBidet (Friar) |
on Apr 04, 2005 at 18:38 UTC ( #444757=note: print w/replies, xml ) | Need Help?? |
(Downvoted because):
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."
In Section
Seekers of Perl Wisdom
|
|