Perl HTTP::Request HASH error?

Viewed 6268

I'm having a bit of difficulty with HTTP::Request in Perl,

My script is set up like so:

use CGI;
use MIME::Base64;
use HTTP::Cookies;
use HTTP::Request;
use LWP::UserAgent;

$request = HTTP::Request->new(GET => 'http://www.example.com/');

 $ua = LWP::UserAgent->new;
 $response = $ua->request($request);

print "$response";

When I run the script on my website, I get a message like so:

HTTP::Response=HASH(0x987f8d8)

(I'm trying to get it to "print" example.com)

3 Answers
Related