D
\Dandy\ Randy
Hello, could use some help finding a way to pause my script for a
predetermined interval during a loop. I have a script that gets some data
for a text file and gathers it into an @array. See below.
open (ADDRESSES, "<data/addresses.txt") or die "Can't open file: $!";
@list=<ADDRESSES>;
close(ADDRESSES);
foreach $list(@list) {
perform function #1
perform function #2
pause 3 seconds
}
I would like a 3 second pause during the above foreach loop. How might I
accomplish this? Thanx!
Randy
predetermined interval during a loop. I have a script that gets some data
for a text file and gathers it into an @array. See below.
open (ADDRESSES, "<data/addresses.txt") or die "Can't open file: $!";
@list=<ADDRESSES>;
close(ADDRESSES);
foreach $list(@list) {
perform function #1
perform function #2
pause 3 seconds
}
I would like a 3 second pause during the above foreach loop. How might I
accomplish this? Thanx!
Randy