What are the elements of the class response
from this code:
Or, how can I print the entire object response
?
#!/usr/bin/env perl
# Example code from Chapter 1 of /Perl and LWP/ by Sean M. Burke
# http://www.oreilly.com/catalog/perllwp/
# [email protected]
require 5;
use strict;
use warnings;
use LWP;
my $browser = LWP::UserAgent->new();
my $response = $browser->get("http://www.oreilly.com/");
die "Couldn't access it: ", $response->status_line
unless $response->is_success;
print $response->header("Server"), "\n";
__END__