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?