Created
December 22, 2010 05:58
-
-
Save monmon/751157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use LWP::UserAgent; | |
use Socket; | |
use Data::Dumper; | |
BEGIN { | |
*inet_aton = \&Socket::inet_aton; | |
} | |
use Coro::LWP; | |
#*Socket::inet_aton = \&inet_aton; | |
*Coro::Util::inet_aton = \&inet_aton; | |
my $url = shift || "http://www.google.co.jp"; | |
print LWP::UserAgent->new->get($url)->code; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment