Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: time and arrays

by dempa (Friar)
on Jan 31, 2003 at 20:47 UTC ( [id://231712]=note: print w/replies, xml ) Need Help??


in reply to time and arrays

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()?)

-- 
dempa

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://231712]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-18 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found