in reply to
fcntl on Windows
have you looked at the can_read function of the IO::Socket class? it accepts a value in seconds to wait before timing out and proceeding with the rest of the script.
for example, this (untested) will wait 1 second and then move on.
my $sel = $sock->select; $sel->can_read(1);
[download]
Comment on
Re: fcntl on Windows
Download
Code
Replies are listed 'Best First'.
Re: Re: fcntl on Windows
by
Daimun
(Novice)
on Mar 21, 2001 at 05:44 UTC
I can't seem to find any such can_read function in IO::Socket. Do you know of any documentation on it?
Daimun
[reply]
Re: Re: Re: fcntl on Windows
by
howard40
(Beadle)
on Mar 22, 2001 at 01:38 UTC
DOH!! it's
IO::Select
. sorry.
[reply]
In Section
Seekers of Perl Wisdom