While, Until in Perl

by Geethalakshmi 2010-09-17 14:02:39

While, Until in Perl


The while loop is used to keep performing a loop while an expression is true.

while (true expression) {
statement 1;
statement 2;
}

The until loop is used to keep perfoming a loop while an expression is false.

until (false expression) {
statement 1;
statement 2;
}

Tagged in:

556
like
0
dislike
0
mail
flag

You must LOGIN to add comments