in reply to Re: Not understanding while loop counting
in thread Not understanding while loop counting

I would suggest using the exact loop style for this situation

Or the perlish for my $count (1..9) { ... } (personally I reserve for (;;) for more complex cases like modifying the loop variable in the loop body, but TIMTOWTDI).