Perl5.16.0 における tr// の動作があやしいので perlbug してみた
https://rt.perl.org/rt3/Public/Bug/Display.html?id=113584
perlop.pod ( http://perldoc.perl.org/perlop.html#Quote-Like-Operators )
says
If multiple transliterations are given for a character, only the first one is used:
tr/AAA/XYZ/
will transliterate any A to X.
But I seems perl 5.16.0 is not works on multi-byte characters.
TEST CODE
use strict;
use warnings;
use utf8;
use 5.010000;
use autodie;
binmode STDOUT, ':utf8';
my $x = "Perlα";
$x =~ tr/αα/βγ/;
say "$^V $x";
RESULT
The test code runson perl 5.14.2 binary, I got following result.
v5.14.2 Perlβ
And I run same script on perl 5.146.0 binary, i got following.
v5.16.0 Perlγ
Published: 2012-06-11(Mon) 10:48