in reply to Re: WWW:Mechanize Problem
in thread WWW:Mechanize Problem

I think that is to specify a form by name, form() is supposed to be used to specify which form on the page. Here is the tutorial i am using http://www.perl.com/pub/a/2003/01/22/mechanize.html

Replies are listed 'Best First'.
Re^3: WWW:Mechanize Problem
by kyle (Abbot) on May 24, 2008 at 02:12 UTC

    The tutorial you're using is over five years old. In the meantime, it appears that form() has become form_number(). Looking at the WWW::Mechanize documentation, I see no form() method listed, but form_number() does what you want.

Re^3: WWW:Mechanize Problem
by almut (Canon) on May 24, 2008 at 02:11 UTC

    form() was valid at the time the tutorial was written (2003) — in the meantime it's form_name() (name based) or form_number() (numeric index). The change was made to accommodate for the rare case that a form is named "3" (i.e. name, not index)...