Perl-Sensitive Sunglasses | |
PerlMonks |
RE: Re: for vs foreachby perlmonkey (Hermit) |
on Jul 14, 2000 at 20:39 UTC ( [id://22585]=note: print w/replies, xml ) | Need Help?? |
See the comments above, your statement is incorrect. for can just as
easily iterate over a list as foreach (without an explicit
iterator), they are completly interchangeable. Results:
In Section
Seekers of Perl Wisdom
|
|