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

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

my $__FILE__ = __FILE__;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

__END__