$string =~ s/[$oldchars]//g #### eval "\$string =~ tr/$oldchars/$newchars/"