A do statement. : Do While « Statement « Perl






A do statement.

#!/usr/local/bin/perl 

$count = 1; 
do { 
   print ("$count\n"); 
   $count++; 
} until ($count > 5); 

 








Related examples in the same category

1.Using the do/while repetition structure
2.Do .. while statement
3.Print out even numbers with a do...while loop
4.The do/while and do/until Loops