programming-examples/perl/Statement/Using do .. until statement.pl

11 lines
159 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
my $i = 1;
print "starting do...until\n";
do {
print " the value of \$i: $i\n";
$i++;
} until ($i >= 6);