in reply to If I was forced to use only one kind of loop for the rest of my days it would be a
What about until? I voted for while, in any case, because I can trivally (if annoyingly) make for loops with while, but the other way 'round is not so easy.
my $counter = 0; while ($counter <= 5) { print $counter; $counter++; }
|
---|