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



On 6/14/05, Bullock, Howard A. <[EMAIL PROTECTED]> wrote:
> Look into the Perl DEV Kit from ActiveState. I would recommend building
> a service using PerlSvc. The inner loop can be controlled...
> 
> The following global functions are available to your script:
> * PerlSvc::ContinueRun( [DELAY] )
> Returns false when the service has received a stop command. Optionally,
> ContinueRun() waits for DELAY seconds, except for the very first time it
> is called. When the service receives a STOP, PAUSE or SHUTDOWN command,
> ContinueRun() aborts the delay and immediately returns a false value.
> 
> You can use decimal seconds from
> http://aspn.activestate.com/ASPN/Mail/Message/pdk/2082714
> 
> 
> The Time::HiRes module (from CPAN, and starting from Perl 5.8 part of
> the standard
> distribution) may also help.
> 
> 
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to