![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^6: Interview Preprationby merlyn (Sage) |
on Apr 04, 2005 at 18:13 UTC ( #444753=note: print w/replies, xml ) | Need Help?? |
Do you mean the word for exchanged for the word foreach? No. Those keywords are syntactically equivalent. And I don't disagree with that fact.
Do you mean replace a for loop with a foreach loop, or vice versa? Certainly! They have different semantics! The keyword "for" is the same as the keyword "foreach". The "for" loop is different from the "foreach" loop. Do I need to keep repeating this? {sigh} -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|