programming-examples/perl/SystemFunction/The sleep command puts your process to sleep for a number of seconds.pl

12 lines
151 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
use strict;
my @count = (1..5);
foreach (reverse(@count)) {
print "$_...\n";
sleep 1;
}
print "BLAST OFF!\n";