$VAR1 = bless( { 'type' => 'radio', 'menu' => [ { 'value' => 'file-20150610220001.zip', 'name' => '' }, { 'value' => 'file-20150611050002.zip', 'name' => '' }, { 'value' => 'file-20150610220001.zip', 'name' => '' } ], 'name' => 'FileName', '/' => '/' }, 'HTML::Form::ListInput' ); #### $VAR1 = 'HASH(0x7fd53685e830)'; $VAR2 = undef; #### for my $input ($form->inputs) { if (q{FileName} eq $input->{name}){ print Dumper($input); # Show First output block my %hash =$input->{menu}[0]; print Dumper(%hash); # Show Second output block #Here iterate the radio button values so I can select the button representing the file with the newest date. #for( this is where I am getting stumped) # do work! #} } }