The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# encoding: KPS9566
# This file is encoded in KPS9566.
die "This file is not encoded in KPS9566.\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|949/oxms) {
    print "ok - 1 # SKIP $^X $0\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 =~ /ƒ\[ƒ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

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

ŽÀsŒ‹‰Ê
C:\test>perl $0
Unmatched [ in regex; marked by <-- HERE in m/ƒ[ <-- HERE ƒX/ at $0 line 6.

‚µ‚©‚µAã‹L‚ł̓}ƒbƒ`‚µ‚Ü‚¹‚ñB
‚Æ‚¢‚¤‚©A³‹K•\Œ»ƒGƒ‰[‚É‚È‚è‚Ü‚·B
‚±‚ê‚́Awƒ\[ƒXx‚́w[x‚Ì‘æ‚QƒoƒCƒg‚ªw[x‚̃R[ƒh‚É‚È‚Á‚Ä‚¢‚é‚©‚ç‚Å‚·B
‚»‚µ‚āA•Â‚¶‚́w]x‚ª‚È‚¢‚½‚߂ɐ³‹K•\Œ»ƒGƒ‰[‚É‚È‚é‚Ì‚Å‚·B

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