$_ = 'a[bdy]dfjaPÃ?sdafÃ?'; print tr/\x0a\x20-\x7d//c, "unwanted characters in the string\n"; __END__ 2 unwanted characters in the string