[Israel.pm] The Coro module

Shmuel Fomberg semuelf at 012.net.il
Sun Dec 20 11:26:45 PST 2009


Hi.

Yuval Kogman wrote:
>> And last, I'm having problem waiting for STDIN to be available. AnyEvent
>> don't call my callback for the io watcher. I'm working on Perl 5.10,
>> Windows. Any idea?
> Got example code?

The simplest function does not work for me:
sub CreateStdinWatcher {
     while (1) {
         say "Entered reading loop";
         Coro::AnyEvent::readable *STDIN;
         say "Incoming line!";
         my $line = <>;
         say $line;
     }
}
it never get past the "readable" line.

Shmuel.


More information about the Perl mailing list