use warnings; use strict; my @cmd = 1 .. 200; my $i = 0; for (@cmd) { print "$_\n"; $i++; sleep 2 if $i % 20 == 0; }
See also:
In reply to Re: pause output when printing an array to the screen
by toolic
in thread pause output when printing an array to the screen
by dubl1n
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |