![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: for loop syntax differenceby Taulmarill (Deacon) |
on Aug 28, 2009 at 14:02 UTC ( #791909=note: print w/replies, xml ) | Need Help?? |
for $i (1..10) creates a list with ten elements and iterates of that. for($i=0;$i<10;$i++) initializes $i with the value 0, then for every iteration of the loop it checks $i and increments if the check returns true or ends the loop.
In Section
Seekers of Perl Wisdom
|
|