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