The stupid question is the question not asked | |
PerlMonks |
Re^2: for loopsby apotheon (Deacon) |
on Oct 11, 2004 at 01:02 UTC ( [id://398066]=note: print w/replies, xml ) | Need Help?? |
On second and following iterations, the for loop ignores the initial assignment of value to $i and uses the incremented value (or decremented, if you use a decrement operator instead of an increment operator) instead. The $i=1 assignment happens once, and once only, in for($i=1; $i<=100; $i++). - apotheon CopyWrite Chad Perrin
In Section
Tutorials
|
|