programming-examples/perl/Array/Using reverse in if statement.pl
2019-11-15 12:59:38 +01:00

13 lines
153 B
Perl

#!/usr/bin/perl -w
use strict;
my @count = (1..5);
foreach (reverse(@count)) {
print "$_...\n";
sleep 1;
}
print "BLAST OFF!\n";