Front page | perl.perl5.porters |
Postings from March 2001
Re: IO::Select
Thread Previous
From:
Benjamin Stuhl
Date:
March 4, 2001 15:38
Subject:
Re: IO::Select
Message ID:
20010304233834.17771.qmail@web6304.mail.yahoo.com
--- Dianne Britton <dbritton@sc.rr.com> wrote:
> I've been stopped short trying to get IO::Select to work
> for me. The following small program does NOT block on
> the can_read. It just prints "ready 0". I'm running
> Perl 5.6 build 623 on Windows 98. If you can help,
> thanks!
> --- Dianne
>
>
> use IO::Select;
>
> $s = IO::Select->new();
>
> $s->add(\*STDIN);
>
> @ready = $s->can_read;
>
> print "ready " . @ready . "\n";
This is an issue with 4-arg select() on Win32. Due to the
braindeadedness of the Win32 stdio implementation, 4-arg
select (which IO::Select is built on) _only_ works on
filehandles from socket(). This may someday be fixed by
PerlIO, but don't hold your breath.
-- BKS
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
Thread Previous
-
IO::Select
by Dianne Britton
-
Re: IO::Select
by Benjamin Stuhl