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

This cannot be the error message you are seeing.

The script you show does not have 1407 lines. There is no method named "some_method" mentioned in the code you show.

Please find a colleague near to you and ask them about how to proceed with your problem.

I cannot help you further unless you show actual effort.

Replies are listed 'Best First'.
Re^8: problem regarding the value given in the select box
by rashichauhan (Novice) on Sep 14, 2013 at 10:17 UTC
    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!!

      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.