Horje
perl until loop Code Example
perl until loop
# Basic syntax:
until( condition ) {
   code to run;
}

# Example usage:
$i = 5;
until( $i > 10 ) {
   print "Value of i: $i\n";
   $i += 1;
}
# Note, until loops are kind of the opposite of whiles loop, they loops over 
# 	the code until the condition becomes true
perl while loop
# Basic syntax:
while( condition ) {
   code to run;
}

# Example usage:
my $i = 5;
while( $i < 10 ) {
   print "Value of i: $i\n";
   $i += 1;
}




14

Related
perl for loop Code Example perl for loop Code Example
perl compare numbers Code Example perl compare numbers Code Example
perl regex syntax Code Example perl regex syntax Code Example
perl contains substring Code Example perl contains substring Code Example
perl $ @ % Code Example perl $ @ % Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10