2012-05-04から1日間の記事一覧

perlの標準入力で文字コードを指定するときの foo.pl foo.txt と foo.pl < foo.txt の違い

知らんかった。 http://blog.livedoor.jp/dankogai/archives/50759241.html http://chalow.net/2007-02-07-1.html ex: utf8で書いたtextを読んで文字数(byte数ではなく)を数えたい。 foo.txt 4文字のファイル作る $ echo -n ほげほげ > foo.txt foo.pl 文字…