The /d modifier deletes the characters matching SEARCHLIST that do not have a corresponding entry in REPLACEMENTLIST. For example: #!/usr/bin/perl $string = 'the cat sat on the mat. '; $string =~ tr/a-z/b/d; print "$string\
"; This will produce following result b b b.