in reply to Re^2: how to post multiple select list through LWP::agent
in thread how to post multiple select list through LWP::agent

thanks for your reply ,but the unquoted select1 select2 will generate syntax error

That's not true! Quoting of identifiers followed by "=>" is optional. See perlop and perldata.

use strict; use warnings; use Data::Dumper qw( Dumper ); print Dumper [ select1 => 'Component_1_1', select1 => 'Component_1_2', select2 => 'Component_2_3', ];
>perl 710263.pl $VAR1 = [ 'select1', 'Component_1_1', 'select1', 'Component_1_2', 'select2', 'Component_2_3' ];

Note that ontologies[] is not an identifier, so you will have to quote that.

it still doesn't work

You've misspelled "All". If you still have problems after fixing that one, perhaps the server is expecting other fields you didn't show us or some cookies.

Replies are listed 'Best First'.
Re^4: how to post multiple select list through LWP::agent
by NPhard (Initiate) on Sep 10, 2008 at 16:04 UTC
    Thanks a lot for your help! it finally works