Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
RE: while or foreach?by Anonymous Monk |
on Dec 24, 1999 at 00:57 UTC ( [id://1370]=note: print w/replies, xml ) | Need Help?? |
Not really, functionally they do the same thing... however,
I tend to use foreach more for list manipulation, and while
more for things like reading filehandles. They pretty much do
the exact same thing.
In Section
Seekers of Perl Wisdom
|
|