in reply to Re^2: Interview Preprationin thread Interview Prepration
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
They're definitely two different kinds of loops. However the text for and foreach may be used to introduce either one. The actual loop-style is determined by what follows.
What is the difference between for & foreach, exec & system
Methinks you're getting a bit bent out of shape over someone agreeing with you. Either that, or I'm completely missing your point.
for & foreach are now an alias to each other
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (242 votes). Check out past polls.