in reply to Re^8: Interview Prepration
in thread Interview Prepration

Ok, how about:

In Perl, the keywords "for" and "foreach" are identical. In many other languages the two keywords refer to two different loop structures. Perl supports both loop structures, but allows the use of either keyword for either structure.

Replies are listed 'Best First'.
Re^10: Interview Prepration
by Anonymous Monk on Apr 05, 2005 at 08:51 UTC
    Many other languages? Could you name a few that actually have the keywords 'for' and 'foreach', and refer to two different loop structures?
      ferite
      C#
      TCL
      PHP

      Not sure how different they are... I'm just being argumentative of course :)
      --------------
      "But what of all those sweet words you spoke in private?"
      "Oh that's just what we call pillow talk, baby, that's all."