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.

Easist way IMO is to use Time::HiRes:

   use Time::HiRes qw(sleep);

   sleep(0.1);

> than I found this solution: select undef, undef, undef, .01;
but it freezes script and it does not continue.

Strange, that should work. What platform are you on?

--
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