in reply to Re^7: problem regarding the value given in the select box
in thread problem regarding the value given in the select box

This 1407 line is in mechanize.pm the complete error is "can't call method on an undefined value at C:/strawberry/perl/vendor/lib/www/mechanize.pm. some_methods was wrongly typed.Plz help me in this regard!!
  • Comment on Re^8: problem regarding the value given in the select box

Replies are listed 'Best First'.
Re^9: problem regarding the value given in the select box
by Corion (Patriarch) on Sep 14, 2013 at 11:03 UTC

    You don't tell us which version of WWW::Mechanize you have installed. You could find out the version by running:

    perl -MWWW::Mechanize -e "die WWW::Mechanize->VERSION"

    The most common cause for this is that you did not set the proper form in your script. I notice a commented out line

    #$mech->form_id('form');

    Maybe using the correct form helps. Or maybe there is no form on your page. I think at least version 1.73 of WWW::Mechanize outputs a proper warning instead of crashing the program.