http://www.perlmonks.org?node_id=1044033


in reply to Completely Confused with Mechanize::Firefox Forms

use HTML::Form qw(); for my $form ($mech->forms) { print Dumper(HTML::Form->parse($form->{outerHTML}, $mech->uri)); }