in reply to Timeouts/timers on Win32 system

use IO::Select; my $s = IO::Select->new($socket); while (not $done) { my @socks = $s->can_read($timeout); if (@socks) { read_socket(); whatever(); } else { close_process(); } }

Replies are listed 'Best First'.
Re: Re: Timeouts/timers on Win32 system
by Dovkont (Novice) on Dec 12, 2003 at 22:41 UTC
    Tried it finally, and yes, it works perfectly. Thank you very much!!!