Perl script output - choices list before regex = ,1,2,3,4,5,6, choices list after regex = 1,2,3,4,5,6 choice 0 = 1 choice 1 = 2 choice 2 = 3 choice 3 = 4 choice 4 = 5 choice 5 = 6 Template output - Choices are: 2 3 4 5 6