[Israel.pm] The Coro module

Yuval Kogman nothingmuch at woobling.org
Mon Dec 21 01:11:11 PST 2009

2009/12/20 Shmuel Fomberg <semuelf at 012.net.il>:

> 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;
>     }
> }

That is probably a buffering issue, specific to the windows console or

The above code works for me using line buffering on a unix tty.

I would try seeing what the equivalent of stty is on windows and
fiddling with that... Sorry I can't help more

More information about the Perl mailing list