programming-examples/perl/Array/use reverse on arrays as well as lists.pl
2019-11-15 12:59:38 +01:00

9 lines
143 B
Perl

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