http://www.perlmonks.org?node_id=444750


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

That's a bit like saying the difference between George Bush and George W Bush is only the W. After all, you can use George Bush to refer to either one.

But they really are different people! They're not the same!

And that's the same with for/foreach. They are not the same! There's a for loop, and there's a foreach loop, and you can use the word "for" or "foreach" to refer to either one, but they are not the same.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.