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


in reply to Using Mechanize With Odd Query String

Just load this form's page with $mech->get(...) and do:
$mech->submit_form( form_number => 1, fields => { target => "Affiliate", }, );
But you need to check form_number param by yourself.