I'm using WWW::Mechanize version 1.66. When I do this,
$ mech-dump url
this shows 3 forms.
But when I try to run this code,
use strict;
use Data::Dumper;
use WWW::Mechanize;
my $m = WWW::Mechanize->new( autocheck => 1 );
$m->agent_alias( 'Windows Mozilla' );
$m->cookie_jar( HTTP::Cookies->new );
$m->get( 'same_url_as_mech-dump' );
print Dumper ( $m->forms() );
$m->submit_form( form_number => 1, fields => $fields );
Here's the output.
There is no form numbered 1 ...
Also, there is no output from $m->forms(). This is weird because mech-dump was able to find the forms. Any help?