>>>>> "Rob" == Rob Dixon <[EMAIL PROTECTED]> writes:

Rob> Although 'foreach' is more useful, I think it's it's far more likely
Rob> that someone realized that the two could be distinguished by context and
Rob> needn't have different symbols, so the two were made equivalent.

That "someone" would be one Mr. Larry Wall.  The for/foreach alias has
existed from the days when Larry was the sole coder of Perl, back in the
Perl 1 days.  Or maybe it was Perl 2 that introduced one loop or the
other, I don't recall now.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to