programming-examples/perl/Statement/Do .. while 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...while:\n";
do {
print " the value of \$i: $i\n";
$i++;
} while ($i < 6);