my $form = $mech->form_number(1); my @keyValuePairs = $form->form();