While, Until in Perl
by Geethalakshmi[ Edit ] 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;
}