Perl Programming/Keywords/until
< Perl Programming | Keywords
The until keyword
[edit | edit source]until is the statement that uses the EXPRESSION, called the condition, to loop until the condition is false. It is the opposite of the while statement.
Syntax
[edit | edit source] until EXPRESSION
Examples
[edit | edit source]![](http://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Crystal_Clear_action_apply.png/20px-Crystal_Clear_action_apply.png)
$i = 5;
print $i++ while $i <= 10;
$j = 5;
print $j++ until $j > 10;