Using the do/until repetition structure : Do Until « Statement « Perl






Using the do/until repetition structure


$counter = 10;

do 
{
   print "$counter ";
} until ( --$counter == 0 );

print "\n";

 








Related examples in the same category

1.Using do .. until statement