programming-examples/perl/Statement/Using the do-until repetition structure.pl

8 lines
92 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
$counter = 10;
do
{
print "$counter ";
} until ( --$counter == 0 );
print "\n";