Can we both agree on this:No, only if you change that to "many languages, including Perl".In Perl, the keywords "for" and "foreach" are identical. In many other languages, the two words stand for two different kinds of loops
perlsyn has a heading called "for loops", and a heading called "foreach loops". I'm going to quote that as an authority, as it was written by the only authority who really matters. Therefore, Perl has for loops, and foreach loops, and overlapping keywords. "for" and "foreach" are not the same in that sentence.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^8: Interview Prepration
by merlyn
in thread Interview Prepration
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |