My first thought was for you to
print $response->as_string; to see exactly what the HTTP headers look like.. But after reading the first response, you're probably after the HTML headers (meta tags, etc inside
<head></head> tags) ... In that case, take a look at
HTML::Parser, specifically in the EXAMPLES section where it extracts the
<title> text.