{"categories":["PG","Perl"],"blog_title":"gae\u306e\u30d6\u30ed\u30b0","url":"https://gae.hatenablog.com/entry/20090130/1233314859","type":"rich","blog_url":"https://gae.hatenablog.com/","published":"2009-01-30 20:27:39","author_name":"gae","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/g/gae/20090130/20090130202541.gif","version":"1.0","provider_url":"https://hatena.blog","description":"\u7df4\u7fd2(\u7b11) apache\u306e\u30ed\u30b0\u3092\u30ab\u30e9\u30d5\u30eb\u306b\u3002 #!/usr/bin/perl -w use strict; # 30..37 \u30c6\u30ad\u30b9\u30c8 \u9ed2 \u8d64 \u7dd1 \u9ec4 \u9752 \u7d2b \u6c34 \u767d # 40..47 \u80cc\u666f\u8272 my @colors = qw(34 31 33 34 32 31); while(<>) { my $cnt = -1; s/([^\"\\[\\] ]+|\".*?\"|\\[.*?\\])(\\s)/ $cnt++; \"\\x1b[$colors[$cnt%@colors]m$1\\x1b[m$2\"/ge; print ; } \u5b9f\u884c\u7d50\u679c\u3002","height":"190","width":"100%","author_url":"https://blog.hatena.ne.jp/gae/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgae.hatenablog.com%2Fentry%2F20090130%2F1233314859\" title=\" \u30ed\u30b0\u306b\u8272 - gae\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":" \u30ed\u30b0\u306b\u8272"}