use WWW::Mechanize; my $mech = WWW::Mechanize->new( autocheck => 1 ); $mech->get($url); if ( $mech->success() ) { print $mech->content,"\n"; } else { print "status is: " . $mech->status,"\n"; } #### try_web_again.pl Error GETing http://perlmeme.org/tutorials/lwp.html: Unexpected keys - LocalHost at /home/bill/bin/try_web_again.pl line 15