Unable to run sample code of AnyEvent::HTTP

Ryan Chan ryanchan404 at gmail.com
Mon Jul 12 15:10:59 CEST 2010


Hi,

On Mon, Jul 12, 2010 at 2:36 PM, Mons Anderson <mons at cpan.org> wrote:
> You forgot AE::cv->recv;
>
> #!/usr/bin/perl
>
> use common::sense;
> use AnyEvent;
> use AnyEvent::HTTP;
> my $cv = AE::cv;
> http_get "http://www.example.com", sub { print $_[1]; $cv->send; };
> $cv->recv;
>
> just read AnyEvent::Intro.

Hi,

Thanks.

Btw, I think this page need to be updated:
http://search.cpan.org/dist/AnyEvent-HTTP/HTTP.pm



More information about the anyevent mailing list