Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
(kudra) Re: difference between for and foreach?by kudra (Vicar) |
on Jan 20, 2001 at 19:52 UTC ( [id://53218]=note: print w/replies, xml ) | Need Help?? |
In Perl, for and foreach can be used interchangably.
In the future, you might try seeing if the question has already been addressed by using 'search'. For example, this question was answered here, which I found by simply putting 'for foreach' in the search box.
In Section
Seekers of Perl Wisdom
|
|