Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Entries from 2007-02-01 to 1 month

Jcode が漢字コードの判定に失敗する場合の話

Jcode::getcode は UTF-8 な文字列のエンコード方式判定に失敗することがある。 Jcode::convert を使ったプログラムで、次のようなエラーが出ることがある。 Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-…

無名配列へのリファレンスを作るときの話

配列へのリファレンスを扱おうとして Not an ARRAY reference at ./hoge.pl line 70, <> line 4016.みたいに言われた。 hoge.pl の 70 行目は foreach (sort { $a->[4] <=> $b->[4] } @hogerefar) {(@hogerefar の要素は配列へのリファレンス)となっていて…

Can't find Unicode property definition

Perl のスクリプト実行時に Can't find Unicode property definition "=" at ./hoge.pl line 92, <> line 4016.と言われた。 確かに、このスクリプトの 92 行目にある正規表現: if (m{^http://w+\.google\..+?/\w+?\?.*?\b(?:as_)?(?:ep)?q=([^&]+)}) {には …