I think perl uses your for-head as a list. The list
Code:
($i = 0, $i <= $noinsection, $i++)
has three elements and is evaluated before entering the loop. $i is set to 0 and incremented at last resulting to 1. The loop iterates 3 times because the list has 3 elements. The current value of $i (1) is printed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.