Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: Is it possible to issue a perl command to sleep for less than 1 second?

by zentara (Archbishop)
on Aug 25, 2007 at 12:46 UTC ( [id://635046]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is it possible to issue a perl command to sleep for less than 1 second?
in thread Is it possible to issue a perl command to sleep for less than 1 second?

It's been around forever(since C was created). Most people discover it when first doing a "perldoc -q sleep" and are referred to "perldoc -f select". Ultimately it is based on the c code, where select can be used as a delay if the file descriptors are left undefined. Read "man select" if you want to know how it's magic works.

Now that you know, you will probably recognize it in alot of code. I usually put an inline comment when I use it, signifying it is used for a delay, so the uninitiated will get it.


I'm not really a human, but I play one on earth. Cogito ergo sum a bum
  • Comment on Re^3: Is it possible to issue a perl command to sleep for less than 1 second?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-16 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found