in reply to Working with WWW::Mechanize

Have you tried installing HTML-Tree (which contains HTML::TreeBuilder) to solve your first problem?

Concerning your second problem, the print statement is indicating $res is an HTTP::Response object. Have you read the documentation for this class? The is_* and content methods should be of primary interest. There's also as_string, which returns the whole response (headers and all) as text.