in reply to Working with WWW::Mechanize

The request() method of LWP::UserAgent returns an HTTP::Response object. This means you will need to deal with $res as an HTTP::Response object, not a simple string. From the HTTP::Response manpage, the appropriate way to deal with these would be the content() method.
if ($res->is_success) { print $res->content; } else { warn $res->status_line, "\n"; }
See HTTP::Request and HTTP::Response.

Replies are listed 'Best First'.
Re^2: Working with WWW::Mechanize
by singingfish (Novice) on Sep 19, 2005 at 12:19 UTC
    or if you're in the debugger,

    x $var

    will do the something similar