in reply to Please help me in mechanize module
Since you know what needs to be sent and it doesn't necessarily jive with the form, you're better off bypassing the normal form logic by calling ->get or ->post directly. (->post is inherited from LWP::UserAgent.)
If the list of numbers isn't constant, the following might be more useful:$mech->post( $uri, [ ..., email => 'samba@gmail.com', samba => '45', samba => '172', samba => '39', ], );
my @sambas = ('45', 172', '39'); $mech->post( $uri, [ ..., email => 'samba@gmail.com', ( map { samba => $_ } @sambas ), ], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Please help me in mechanize module
by Anonymous Monk on Sep 06, 2010 at 20:07 UTC |