The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# encoding: Big5HKSCS
# This file is encoded in Big5-HKSCS.
die "This file is not encoded in Big5-HKSCS.\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/*");
# if ($fileName =~ /\Qƒ\[ƒX\E/) {
if ($fileName =~ /ƒ\[ƒX/) {
    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[x‚𕁒ʂ̕¶Žšˆµ‚¢‚·‚邽‚߂ɁAwƒ\[ƒXx‚ð\Q‚Æ\E‚ň͂ñ‚Å‚Ý‚Ü‚·B

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

ŽÀsŒ‹‰Ê
C:\test>perl $0
Unmatch
./hoge/ƒeƒXƒgƒ\[ƒX.txt

‚µ‚©‚µAã‹L‚ł̓}ƒbƒ`‚µ‚Ü‚¹‚ñB
‚È‚º‚©‚Æ‚¢‚¤‚ƁA /\Qƒ\[ƒX\E/‚́A\Q‚æ‚èæ‚Ɂwƒ\[ƒXx•¶Žš—ñ‚ª•]‰¿‚³‚ê‚é‚̂ŁA
Šî–{“I‚Ɂw[x‚ðƒGƒXƒP[ƒv‚µ‚½‚ɉ߂¬‚Ü‚¹‚ñB

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