in reply to Problem with the module WWW::Mechanize

This is weird - the Makefile.PL for WWW::Mechanize specifies LWP version 5.802, and HTTP::Message has the ->decoded_content method at least since LWP release 5.802 (HTTP::Message version 1.52).

How did you install WWW::Mechanize? If you did a manual install or maybe forced the installation, you maybe skipped the LWP dependency. Check your version of HTTP::Message with the following:

perl -MHTTP::Message -e 'print $HTTP::Message::VERSION'

and if it's lower than 1.52, you need to upgrade your HTTP::Message module. If the module is the current version then please report the versions of all modules involved (WWW::Mechanize, LWP::UserAgent, HTTP::Message, ...)

Replies are listed 'Best First'.
Re^2: Problem with the module WWW::Mechanize
by gjwilson21 (Acolyte) on Jul 20, 2007 at 10:21 UTC
    Thanks Friend. Can we upload a file using the Web::Mechanize module? is there any function as such? I want to upload a file using the fileupload box in a page. please help me if you know
        Hi I tried to create a Form object from the Mec. And after that i uploaded a file with the appropriate location. But i am getting an error message. Can you give some information about how to use file method along with the WWW::Mechanize module?