Unable to run sample code of AnyEvent::HTTP

Ryan Chan ryanchan404 at gmail.com
Mon Jul 12 04:28:32 CEST 2010

A sample code (according to
http://search.cpan.org/dist/AnyEvent-HTTP/HTTP.pm)  cannot run in
Ubuntu 9.04/CPAN install of AnyEvent::HTTP:


perl -w -e 'use AnyEvent::HTTP; print $AnyEvent::HTTP::VERSION';



#!/usr/bin/perl -w

use strict;
use warnings;

use AnyEvent::HTTP;

http_get "http://www.example.com", sub { print $_[1] };

Nothing got print out.

Any idea?

More information about the anyevent mailing list