develooper Front page | perl.perl5.porters | Postings from February 2001

IO::Select

Thread Next
From:
Dianne Britton
Date:
February 28, 2001 14:14
Subject:
IO::Select
Message ID:
000a01c0a1cc$09aff260$0100a8c0@sc.rr.com
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";


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About