Entries from 2007-02-01 to 1 month
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 の要素は配列へのリファレンス)となっていて…
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=([^&]+)}) {には …