until with integer : Until « Statement « Perl






until with integer

   

$loop_index = 1;
until ($loop_index > 10) {
    print "Hello!\n";
    $loop_index++;
}

   
    
    
  








Related examples in the same category

1.A program that uses the until statement.
2.Average-sales problem with sentinel-controlled repetition
3.Controlling Loop Flow
4.Looping Until
5.The until Loop
6.The until modifier repeatedly executes the second expression as long as the first expression is false.
7.The until statement
8.Use until to read user input
9.Using until with print statement
10.until statement
11.until with continue
12.until with diamond operator