$new_string = "good food"; $new_string =~ tr/od/ek/; #### $new_string = ( "good food" =~ tr/[od]/[ek]/; );