in reply to Parsing Forms with selections

I'll try to answer some questions that have come up.
podmaster here is the Data::Dumper output of the array:
$VAR1 = bless( { 'fieldvals' => {}, 'checkboxstate' => {}, 'base' => undef, 'buttontypes' => { 'Submit2' => [ 'submit' ] }, 'buttons' => [ 'Submit2' ], 'upload' => 0, 'selections' => { 'bar' => [ undef, undef, undef ] }, 'buttonvals' => { 'Submit2' => [ 'Go!' ] }, 'method' => 'post', 'fieldtypes' => { 'bar' => 'select' }, 'fields' => [ 'bar' ], 'name' => 'form1', 'allfields' => [ 'bar' ], 'debug' => undef, 'link' => '/foo/bar.php' }, 'HTTP::Request::Form' );
As to what my problem is, in the 'selections' field it shows 3 undef values. So when I use the code like this:
$response = $userAgent->request( $form->press( "Submit2" ));
Those fields do not get filled in, and I do not get the response I need.
mp and rdfield, I found HTML::FORM, and before I was using HTTP::Request::Form. The data dumper output from this code:
@forms2 = HTML::Form->parse( $text, "here.com"); $d2 = Data::Dumper->new( \@forms2 ); print $d2->Dump;
Gives me:
$VAR1 = bless( { 'inputs' => [ bless( { 'seen' => [ 1, 0, 0 ], 'menu' => [ 'OPTION1', 'OPTION2', 'OPTION3' ], 'current' => 0, 'type' => 'option', 'name' => 'bar' }, 'HTML::Form::ListInput' ), bless( { 'class' => 'login', 'value' => 'Go!', 'type' => 'submit', 'name' => 'Submit2' }, 'HTML::Form::SubmitInput' ) ], 'extra_attr' => { 'name' => 'form1' }, 'enctype' => 'application/x-www-form-urlencoded', 'method' => 'POST', 'action' => bless( do{\(my $o = '/foo/bar.php')}, 'UR +I::_foreign' ) }, 'HTML::Form' );
Which looks like it parsed it right! I have yet to try it in my actual application, but it looks like it offers the same functionality, without having to build the tree first. Thanks!!!