# 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
# Basic syntax:
while( condition ) {
code to run;
}
# Example usage:
my $i = 5;
while( $i < 10 ) {
print "Value of i: $i\n";
$i += 1;
}