note
merlyn
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.
<p>
But they really are different people! They're <i>not</i> the same!
<p>
And that's the same with for/foreach. They are <i>not</i> 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 <i>they are not the same</I>.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-9073">
<p>-- [http://www.stonehenge.com/merlyn/|Randal L. Schwartz, Perl hacker]
<br>
Be sure to read [id://205373|my standard disclaimer] if this is a reply.</p>
</div></div>
444520
444747