--- AnyEvent/eg/handle 2008/05/24 23:34:28 1.3 +++ AnyEvent/eg/handle 2009/08/06 14:00:36 1.4 @@ -9,7 +9,7 @@ my $ae_fh = AnyEvent::Handle->new ( fh => \*STDIN, - on_eof => sub { $cv->broadcast } + on_error => sub { $cv->broadcast } ); $ae_fh->push_read (line => sub {