go ahead... be a heretic | |
PerlMonks |
Re: Not understanding while loop countingby LanX (Saint) |
on Aug 10, 2020 at 08:15 UTC ( [id://11120538]=note: print w/replies, xml ) | Need Help?? |
for the same reason why 0 is never printed. you print after incrementing but before the next loop iteration is tested. just move the print to the top to see the difference.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|