programming-examples/perl/Statement/Looping Until.pl

8 lines
139 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
use warnings;
use strict;
my $countdown = 5;
until ($countdown-- == 0) {
print "Counting down: $countdown\n";
}