Global symbol "$useragent" requires explicit package name at xxxxx.pl line 8.
This is what I am getting when I execute your code.
The WWW::Mechanize documentation says that click_button works on the "current Form", which might be the source of your problem. please check whether the button is in any form? if it is means try add below example code before click_button() and try.
Ex:# select the first form and examine its contents $m->form_number(1); my $f = $m->current_form or die "Couldn't get first form!\n";
In reply to Re: Click on "any" href
by vinoth.ree
in thread Click on "any" href
by annonimous
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |