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.
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to