Ruby and Perl also have an internal tr operator, which operates analogously.
Ruby和Perl也有一个内置的tr操作符，使用方法类似。