Hi Monks
There is any (easy way) to add a delay into a foreach loop (elaborate each element of the array after x time)? The following of course doesn't work.
#!/usr/bin/perl -w use strict; foreach (1..20) { print "a"; sleep (1);#between each element of the array there should be 1 sec +ond interval } print "\n";
In reply to Foreach time delay by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |