aboyd has asked for the wisdom of the Perl Monks concerning the following question:
I can brute-force it, and just manually copy & paste that line 100 times -- I don't think more than 100 widgets are ever selected, so it's a safe ceiling -- but I was hoping that there was something more elegant. For example, could I put an array on each side of the => operator and have it iterate automagically? Or something else?$webpage = $browser->post($form_url, [ username => $username, widget => $widget{1}, # I need to repeat this line n times. created => '1126175051' ],Content_Type => 'form-data'));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using LWP's "post" to send n fields into a form?
by fizbin (Chaplain) on Sep 10, 2005 at 09:07 UTC | |
by aboyd (Sexton) on Sep 10, 2005 at 13:19 UTC | |
|
Re: Using LWP's "post" to send n fields into a form?
by davidrw (Prior) on Sep 10, 2005 at 13:29 UTC |