in reply to Perl Mechanize - Can't call method value

Most likely, this call:

$mechObj->form_number(1);

fails, as maybe there is no form on the page you get.

Replies are listed 'Best First'.
Re^2: Perl Mechanize - Can't call method value
by mecrazycoder (Sexton) on Mar 26, 2011 at 19:01 UTC
    I even replaced with form_name() but still getting same error.

      If there is no (first) form on the page, why do you expect to find one by its name?

      See WWW::Mechanize->dump_forms and ->content to inspect the current page and to find what is there and what is not.