Don't ask to ask, just ask | |
PerlMonks |
Re: time and arraysby dempa (Friar) |
on Jan 31, 2003 at 20:47 UTC ( [id://231712]=note: print w/replies, xml ) | Need Help?? |
Well, you can use shift to knock off the first element in the array. It's difficult to say how you should do it after X seconds without seeing the rest of the code. I guess sleep could be used but as I said it's difficult to know if it's possible without the rest of the code. (I mean, sleep will cause your program to "halt" (bad word, I know) for X seconds. Maybe use SIGALRM and alarm()?)
--
In Section
Seekers of Perl Wisdom
|
|