in reply to Perl Tk Radiobutton in a popup menu

Just include several radiobuttons that share the same variable to be grouped together:
[ radiobutton => "My Radio1", -variable => \$var2, -command => sub { warn $var2 }, -value => 1, ], [ radiobutton => "My Radio2", -variable => \$var2, -command => sub { warn $var2 }, -value => 2, ],
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,