I'm using ActiveState Perl 5.6.1. I'm building a small web spider using WWW:Mechanize. The code was coming along nicely but I was having some trouble getting one form to submit because the fields were select fields with drop down options. While I was thinking about that I decided to check my version of Mechanize with ppm. Results back from ppm indicated that a more current version was available, so I blithely went ahead and updated the module from .43 to .48.

Now my new code won't run and neither will any of my old code that relied on WWW::Mechanize. The error I get is:

Can't locate object method "requests_redirectable" via package "WWW::Mechanize" (perhaps you forgot to load "WWW::Mechanize"?)...

Since I hadn't changed any of the code I assume that there's been a change in the module that caused a problem. I did a super search and came up with this node: WWW:Mechanize and Windows. Akira71 was having the same trouble with version .48 of Mechanize on Windows. I was surprised to find that I had replied, saying that I ran the posted code on my system (v.43) with no problems--perhaps it was the version number.

So, now I really want to bang my head on the desk. I've read the all of the documentation that I can find but I can't figure out which piece of the code has changed and why I'm getting this error. I would appreciate any enlightenment, guidance or instruction from the Monastery--Did Akira71 ever solve the problem? What can I do to get my WWW::Mechanize to get past this error? I notice that CPAN has yet a more current version...can that be installed on Windows without too much trouble?


In reply to WWW::Mechanize, new version, broken code by WhiteBird

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.