TOKO <[EMAIL PROTECTED]> asked:
> 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 conti
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
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, unde
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
--
To unsub