in reply to Re^7: Interview Prepration
in thread Interview Prepration
The foreach keyword is actually a synonym for the for keyword, so you can use foreach for readability or for for brevity. (Or because the Bourne shell is more familiar to you than csh, so writing for comes more naturally.)So the correct response to : "What is the difference between for and foreach?" is "The keywords or the loop structures?"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Interview Prepration
by jZed (Prior) on Apr 04, 2005 at 18:44 UTC | |
by RazorbladeBidet (Friar) on Apr 04, 2005 at 18:49 UTC |