# encoding: Sjis # This file is encoded in ShiftJIS. die "This file is not encoded in ShiftJIS.\n" if q{あ} ne "\x82\xa0"; use Sjis; print "1..1\n"; # Can't find string terminator '"' anywhere before EOF # 「終端文字 '"'がファイルの終り EOF までに見つからなかった」 if ("対応表" eq pack('C6',0x91,0xce,0x89,0x9e,0x95,0x5c)) { print qq; } else { print qq; } __END__ Sjis.pm の処理結果が以下になることを期待している if ("対応表\" eq pack('C6',0x91,0xce,0x89,0x9e,0x95,0x5c)) { Shift-JISテキストを正しく扱う http://homepage1.nifty.com/nomenclator/perl/shiftjis.htm