Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Do-nothing loops

by tmiklas (Hermit)
on Mar 16, 2002 at 12:35 UTC ( [id://152180]=note: print w/replies, xml ) Need Help??


in reply to Do-nothing loops

Hi!

If you want to wait a few seconds before taking an action, use the sleep(), becouse loops like yours strongly occupy your machine. sleep() works great with full number of seconds, but if you need delays below 1 sec or for example 1.7 sec, then use Time::HiRes module from CPAN. It works fine and should fit well :-)

BTW. CPAN has a nice search engine...

Good luck!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152180]
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-23 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found