< Perl Programming < Keywords

The code
prints the same twice:
The until keyword
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
until EXPRESSION
Examples

$i = 5;
print $i++ while $i <= 10;
$j = 5;
print $j++ until $j > 10;
See also
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.