my @VehicleProgram=('AA','BB'); #if user selects $VehicleProgram=AA my @CrashMode=('12','13'); #if user selects $CrashMode=12 my @Load=('AA_121','AA_13','BB_12','CC_12','AA_122'); depending on $VehicleProgram and $CrashMode the radiobuton Load should contains only the relevant Values of @Load #Radiobutton Load (@LoadArrayRef) # should contain ONLY 'AA_121' and 'AA_122'