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)...
In reply to Re^3: WWW:Mechanize Problem
by almut
in thread WWW:Mechanize Problem
by SavagePerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |