INPUT: 0060 0067 0068 ##Troublesome code## foreach (@pbArray){ push (@qxArray, "vc.get(\"$_\") Exists() && vc.get(\"$_\") getMin > 20"); } chomp @qxArray; foreach (@qxArray){ print $_; } OUTPUT vc.get("0060 ") Exists () && vc.get("0060 ") getMin > 20 vc.get("0067 ") Exists () && vc.get("0067 ") getMin > 20 vc.get("0068 ") Exists () && vc.get("0068 ") getMin > 20 EXPECTED OUTPUT: vc.get("0060") Exists () && vc.get("0060") getMin > 20 vc.get("0067") Exists () && vc.get("0067") getMin > 20 vc.get("0068") Exists () && vc.get("0068") getMin > 20