my $str = "12345"; $str =~ tr/12345/あいうえお/; print $str."\n";