On Wed, May 30, 2001 at 01:42:17PM -0400, Craig Moynes/Markham/IBM wrote:
> Hi all, my DNS server is down so I can't check online.
No need to check online. This answer is in the FAQ that comes with
Perl.
> Is there anyway to sleep for less than a second using the default
> installation of perl ?
> And if not what CPAN module should I use when I get my internet connection
> back up ?
$ perldoc -q sleep
Found in /usr/local/lib/perl5/5.6.1/pod/perlfaq8.pod
How can I sleep() or alarm() for under a second?
If you want finer granularity than the 1 second that the
sleep() function provides, the easiest way is to use the
select() function as documented in the select entry in the
perlfunc manpage. Try the Time::HiRes and the BSD::Itimer
modules (available from CPAN).
Walt
--
Walter C. Mankowski
Senior Software Engineer Myxa Corporation
phone: (610) 234-2626 fax: (610) 234-2640
email: [EMAIL PROTECTED] http://www.myxa.com