in reply to Re: Problem saving webpage content into a file
in thread Problem saving webpage content into a file

print "$response->content\n";

This likely won't print what you intend. Quotes don't interpolate to method calls.

print $response->content, "\n";

I think that the content has already been decompressed by WWW::Mechanize for you.