# encoding: Cyrillic # This file is encoded in Cyrillic. die "This file is not encoded in Cyrillic.\n" if q{あ} ne "\x82\xa0"; use Cyrillic; print "1..3\n"; $| = 1; my $__FILE__ = __FILE__; my $tno = 1; # s///o for $i (1 .. 3) { $a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if ($i == 1) { $re = 'J'; } elsif ($i == 2) { $re = 'K'; } elsif ($i == 3) { $re = 'L'; } if ($a =~ s/$re/あ/o) { if ($a eq "ABCDEFGHIあKLMNOPQRSTUVWXYZ") { print qq{ok - $tno \$a =~ s/\$re/あ/o (\$re=$re)(\$a=$a) $^X $__FILE__\n}; } else { if ($] =~ /^5\.006/) { print qq{ok - $tno # SKIP \$a =~ s/\$re/あ/o (\$re=$re)(\$a=$a) $^X $__FILE__\n}; } else { print qq{not ok - $tno \$a =~ s/\$re/あ/o (\$re=$re)(\$a=$a) $^X $__FILE__\n}; } } } else { print qq{not ok - $tno \$a =~ s/\$re/あ/o (\$re=$re)(\$a=$a) $^X $__FILE__\n}; } $tno++; } __END__