programming-examples/perl/Statement/Using the do-while repetition structure.pl
2019-11-15 12:59:38 +01:00

9 lines
94 B
Perl

$counter = 1;
do
{
print "$counter ";
} while ( ++$counter <= 10 );
print "\n";