You have more than one form on that page, the $mech->field() method defaults to the first form on the page, you need to either specify a form_name or form_number. Double check the WWW::Mechanize documentation. Also you don't have:
use strict; use warnings;
in your code, and you have use WWW::Mechanize; twice.
Martin
In reply to Re: WWW::Mechanize can't see the fields
by marto
in thread WWW::Mechanize can't see the fields
by rlopes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |