in reply to HTML::Form and reading radio button values
for my $input ($form->inputs) { if (q{FileName} eq $input->{name}){ print Dumper($input); # Show First output block my $hash = $input->{menu}[0]; # '$hash' not '%hash' # $hash is the first button print Dumper($hash); # to iterate the radio button values my $menu = $input->{menu}; for my $button ( @$menu ) { my $file = $button->{value}; print "$file\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Form and reading radio button values
by aikiPupil (Initiate) on Jun 12, 2015 at 17:23 UTC |