The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# encoding: Big5Plus
# This file is encoded in Big5Plus.
die "This file is not encoded in Big5Plus.\n" if q{‚ } ne "\x82\xa0";

use strict;
# use warnings;

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

my $__FILE__ = __FILE__;

my $chcp = '';
if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/oxms) {
    $chcp = `chcp`;
}
if ($chcp !~ /932|950/oxms) {
    print "ok - 1 # SKIP $^X $__FILE__\n";
    exit;
}

mkdir('hoge', 0777);
open(FILE,'>hoge/ƒeƒXƒgƒ\[ƒX.txt') || die "Can't open file: hoge/ƒeƒXƒgƒ\[ƒX.txt\n";
print FILE "1\n";
close(FILE);

my($fileName) = glob("./hoge/*");
my $wk = 'ƒ\[ƒX';
if ($fileName =~ /\Q$wk\E/) {
    print "ok - 1 $^X $__FILE__\n";
}
else {
    print "not ok - 1 $^X $__FILE__\n";
}

unlink('hoge/ƒeƒXƒgƒ\[ƒX.txt');
rmdir('hoge');

__END__

‚½‚Æ‚¦‚΁A./hoge”z‰º‚ɁwƒeƒXƒgƒ\[ƒX.txtx‚Æ‚¢‚¤ƒtƒ@ƒCƒ‹‚ª‚ ‚Á‚½‚Æ‚µ‚Ü‚·B
•Ï”“WŠJ‚µ‚È‚¢‚悤‚ɃVƒ“ƒOƒ‹ƒNƒH[ƒgwmy $wk = 'ƒ\[ƒX';x‚É‚µ‚Ä‚Ý‚Ü‚·B

Ÿ‚»‚Ì‚SFƒR[ƒh‚ÍshiftjisAˆ—‚ÍshiftjisA•W€“üo—Í‚Íshiftjis

ŽÀsŒ‹‰Ê
C:\test>perl $0
Match
./hoge/ƒeƒXƒgƒ\[ƒX.txt
¡“x‚́AãŽè‚­s‚«‚Ü‚µ‚½B

8/2(“y) ¡[Perlƒm[ƒg] ƒVƒtƒgJISŠ¿Žš‚̃tƒ@ƒCƒ‹–¼‚Ƀ}ƒbƒ`‚µ‚Ä‚Ý‚é
http://d.hatena.ne.jp/chaichanPaPa/20080802/1217660826