TOKO wrote:
hi. I'm new at perl and am looking for solution of let script sleep for few miliseconds. I tried sleep(0.1); but it does not work :) as I thought. than I found this solution: select undef, undef, undef, .01; but it freezes script and it does not continue.
Thanks for any ideas. TOKO


You could use Time::HiRes which is also mentioned in perldoc -f sleep. Sleep only works with a granularity of one second.

http://search.cpan.org/~jhi/Time-HiRes-1.83/HiRes.pm

hth
E.
--
Elie De Brauwer


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to