in reply to Re^2: How to find the selected radio button in a Loft GUI
in thread How to find the selected radio button in a Loft GUI

I'd either put the radio button objects into and array or hash then loop using either:

for (7..14) { if ($buttons[$_]->Checked ()) { ... indicate found and exit loop ... } }

or

for my $key (keys %buttons) { if ($buttons{$key}->Checked ()) { ... indicate found and exit loop ... } }

depending on what you are trying to achieve.


DWIM is Perl's answer to Gödel