in reply to Re: if else condition not assigning value when using my
in thread if else condition not assigning value when using my

In this case of one-to-one mappings I'd rather prefer a hash.

%radiobutton=( P1 => [ 3, 'Open P1 Bugs' ], P2 => ... ); ($rec_type,$y_label)= @{ $radiobutton{ param('P1P2_bugs') } };

(untested)

Cheers Rolf