The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# encoding: EUCJP
# This file is encoded in EUC-JP.
die "This file is not encoded in EUC-JP.\n" if q{¤¢} ne "\xa4\xa2";

use Char;
print "1..20\n";

my $__FILE__ = __FILE__;

if ("A" =~ /[^B-¤Í]/) {
    print qq{ok - 1 "A"=~/[^B-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 1 "A"=~/[^B-¤Í]\/ $^X $__FILE__\n};
}

if ("B" !~ /[^B-¤Í]/) {
    print qq{ok - 2 "B"!~/[^B-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 2 "B"!~/[^B-¤Í]\/ $^X $__FILE__\n};
}

if ("¤Ì" !~ /[^B-¤Í]/) {
    print qq{ok - 3 "¤Ì"!~/[^B-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 3 "¤Ì"!~/[^B-¤Í]\/ $^X $__FILE__\n};
}

if ("¤Í" !~ /[^B-¤Í]/) {
    print qq{ok - 4 "¤Í"!~/[^B-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 4 "¤Í"!~/[^B-¤Í]\/ $^X $__FILE__\n};
}

if ("¤Î" =~ /[^B-¤Í]/) {
    print qq{ok - 5 "¤Î"=~/[^B-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 5 "¤Î"=~/[^B-¤Í]\/ $^X $__FILE__\n};
}

my $from = 'B';
if ("A" =~ /[^$from-¤Í]/) {
    print qq{ok - 6 "A"=~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 6 "A"=~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}

if ("B" !~ /[^$from-¤Í]/) {
    print qq{ok - 7 "B"!~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 7 "B"!~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}

if ("¤Ì" !~ /[^$from-¤Í]/) {
    print qq{ok - 8 "¤Ì"!~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 8 "¤Ì"!~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}

if ("¤Í" !~ /[^$from-¤Í]/) {
    print qq{ok - 9 "¤Í"!~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 9 "¤Í"!~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}

if ("¤Î" =~ /[^$from-¤Í]/) {
    print qq{ok - 10 "¤Î"=~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 10 "¤Î"=~/[^\$from-¤Í]\/ $^X $__FILE__\n};
}

my $to = '¤Í';
if ("A" =~ /[^$from-$to]/) {
    print qq{ok - 11 "A"=~/[^\$from-\$to]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 11 "A"=~/[^\$from-\$to]\/ $^X $__FILE__\n};
}

if ("B" !~ /[^$from-$to]/) {
    print qq{ok - 12 "B"!~/[^\$from-\$to]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 12 "B"!~/[^\$from-\$to]\/ $^X $__FILE__\n};
}

if ("¤Ì" !~ /[^$from-$to]/) {
    print qq{ok - 13 "¤Ì"!~/[^\$from-\$to]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 13 "¤Ì"!~/[^\$from-\$to]\/ $^X $__FILE__\n};
}

if ("¤Í" !~ /[^$from-$to]/) {
    print qq{ok - 14 "¤Í"!~/[^\$from-\$to]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 14 "¤Í"!~/[^\$from-\$to]\/ $^X $__FILE__\n};
}

if ("¤Î" =~ /[^$from-$to]/) {
    print qq{ok - 15 "¤Î"=~/[^\$from-\$to]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 15 "¤Î"=~/[^\$from-\$to]\/ $^X $__FILE__\n};
}

if ("A" =~ /[^${from}-${to}]/) {
    print qq{ok - 16 "A"=~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 16 "A"=~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}

if ("B" !~ /[^${from}-${to}]/) {
    print qq{ok - 17 "B"!~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 17 "B"!~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}

if ("¤Ì" !~ /[^${from}-${to}]/) {
    print qq{ok - 18 "¤Ì"!~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 18 "¤Ì"!~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}

if ("¤Í" !~ /[^${from}-${to}]/) {
    print qq{ok - 19 "¤Í"!~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 19 "¤Í"!~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}

if ("¤Î" =~ /[^${from}-${to}]/) {
    print qq{ok - 20 "¤Î"=~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}
else {
    print qq{not ok - 20 "¤Î"=~/[^\${from}-\${to}]\/ $^X $__FILE__\n};
}

__END__