$string = $q->param("us1"); # this is what entered +book +dog +cat print join(',', $string), "\n"; #### # Output "+book", "+dog", "+cat"