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

Addendum: see also perlsyn#For-Loops

Perl's C-style for loop works like the corresponding while loop; that means that this:
for ($i = 1; $i < 10; $i++) { ... }
is the same as this:
$i = 1; while ($i < 10) { ... } continue { $i++; }

NB I have to admit I practically never use continue ...

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery