Nahum Cohen wrote:
> Indeed the sleep gets seconds as argument.
> Try this:
> select (undef, undef, undef, $sleep); # $sleep time in milliseconds

On Win32 you also have

Win32::Sleep($msecs);

In addition to the already mentioned:

select undef, undef, undef, .001;

use Time::HiRes qw(usleep);
usleep ($usecs);

I personally would use the Time::HiRes option for portability and
best resolution (if underlying OS supports that res).

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to