or download this
print $query->radio_group(-name=>'fields',-value=>[ @array ]);
chomp($field1 = $query->param('fields'));
$condition = "field \n" . $field1 . " : " . "="; #lots more at the end
+ of the string, but not relevant to the question.
print $query->textarea( -name=>'finalCond',-value=>$condition,-rows=>1
+5,-cols=>80,-force=>1);