{"id":766,"date":"2009-08-20T10:15:10","date_gmt":"2009-08-20T01:15:10","guid":{"rendered":"http:\/\/njet.oops.jp\/wordpress\/2009\/08\/20\/perl%e3%81%a7%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab%e3%83%bb%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%87%a6%e7%90%86%e3%81%99%e3%82%8b\/"},"modified":"2012-11-30T21:46:21","modified_gmt":"2012-11-30T12:46:21","slug":"perl%e3%81%a7%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab%e3%83%bb%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%87%a6%e7%90%86%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/njet.oops.jp\/wordpress\/2009\/08\/20\/perl%e3%81%a7%e3%82%a8%e3%82%af%e3%82%bb%e3%83%ab%e3%83%bb%e3%83%87%e3%83%bc%e3%82%bf%e3%82%92%e5%87%a6%e7%90%86%e3%81%99%e3%82%8b\/","title":{"rendered":"Perl\u3067\u30a8\u30af\u30bb\u30eb\u30fb\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b"},"content":{"rendered":"<p>\u3068\u3042\u308b\u4ef6\u3067\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u30fb\u30a8\u30af\u30bb\u30eb(MS Excel)\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u306b\u306a\u3063\u305f\u3002\u3068\u3044\u3046\u304b\u3001\u5165\u529b\u6e08\u307f\u306e\u30c7\u30fc\u30bf\u304c\u30a8\u30af\u30bb\u30eb\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u3044\u3046\u6b21\u7b2c\u3002\u30db\u30f3\u30c8\u306f\u30c6\u30ad\u30b9\u30c8\u30fb\u30c7\u30fc\u30bf\u3067\u304f\u308c\u308c\u3070\u5b09\u3057\u3044\u306e\u3060\u304c\u3001\u3069\u3046\u3082\u3001\u4e8b\u52d9\u95a2\u4fc2\u306f\u3069\u3053\u3082\u304b\u3057\u3053\u3082\u30a8\u30af\u30bb\u30eb\u3070\u304b\u308a\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>\u5e78\u3044\u306a\u3053\u3068\u306b\u3001Windows\u3092\u8d77\u52d5\u3057\u306a\u304f\u3066\u3082\u3001Ubuntu\u4e0a\u306eOpen Office SpreadSheet\u3067\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u3066\u3001\u3055\u3089\u306b\u3001\u3053\u308c\u3092 CSV (Comma Separated Values) \u5f62\u5f0f\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3067\u304d\u308b\u3002\u3053\u3046\u306a\u308c\u3070\u3001\u3042\u3068\u306f\u697d\u3067\u3042\u308b\u3002\u3084\u3063\u3071\u308a\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u4e00\u756a\u3060\u3088\u306d\u3048\u3002<\/p>\n<p>CSV\u5f62\u5f0f\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001\u30bb\u30d1\u30ec\u30fc\u30bf\u30fc\u304c\u9078\u3079\u308b\u3002\u30b3\u30f3\u30de\u3067\u533a\u5207\u308b\u3088\u308a\u3082\u30bf\u30d6\u3067\u533a\u5207\u308b\u65b9\u304c\u3001\u3042\u308b\u610f\u5473\u5408\u7406\u7684\u306a\u306e\u3067\u3001\u30bf\u30d6\u3067\u533a\u5207\u3063\u3066\u4fdd\u5b58\u3059\u308b\u3002\u3053\u308c\u3063\u3066\u3001Tab Separated Values \u3060\u304b\u3089\u3001TSV\u3068\u547c\u3076\u3079\u304d\u3060\u3068\u601d\u3046\u304c\u3001\u3053\u308c\u3067\u3082\u3084\u3063\u3071\u308aCSV\u3068\u79f0\u3059\u308b\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n<p>\u305d\u308c\u306f\u3068\u3082\u304b\u304f\u3001\u3042\u3068\u306f1\u884c\u305a\u3064\u8aad\u307f\u8fbc\u3093\u3067\u51e6\u7406\u3059\u308c\u3070\u3088\u3044\u3002UNIX\u306e\u6a19\u6e96\u5165\u529b\u304b\u3089\u8aad\u307f\u3001\u6a19\u6e96\u51fa\u529b\u306b\u66f8\u304d\u51fa\u3059\u3053\u3068\u306b\u3057\u305f\u3002\u5b9f\u969b\u306b\u306f\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308c\u3070\u826f\u3044\u3002\u3053\u3046\u3059\u308b\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u6975\u3081\u3066\u7c21\u5358\u3002\u5165\u51fa\u529b\u3092\u66f8\u304b\u306a\u304f\u3066\u3088\u3044\u304b\u3089\u3002<\/p>\n<pre class=\"brush: perl; title: ; notranslate\" title=\"\">\r\nwhile (&lt;STDIN&gt;) {\r\n  chomp; # \u884c\u672b\u30b3\u30fc\u30c9\u3092\u524a\u9664\r\n  @data = split \/\\t\/, $_; # $_\u306f1\u884c\u5206\u306e\u30c7\u30fc\u30bf\r\n  # \u4ee5\u4e0b\u3001\u3053\u306e\u914d\u5217\u306b\u5bfe\u3059\u308b\u4f5c\u696d\u3092\u884c\u3046\u3002\r\n}\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002UNIX\u306e\u4fbf\u5229\u3055\u3001Perl\u306e\u67d4\u8edf\u3055\u304c\u5b9f\u611f\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3068\u3042\u308b\u4ef6\u3067\u3001\u30de\u30a4\u30af\u30ed\u30bd\u30d5\u30c8\u30fb\u30a8\u30af\u30bb\u30eb(MS Excel)\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u306b\u306a\u3063\u305f\u3002\u3068\u3044\u3046\u304b\u3001\u5165\u529b\u6e08\u307f\u306e\u30c7\u30fc\u30bf\u304c\u30a8\u30af\u30bb\u30eb\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3068\u3044\u3046\u6b21\u7b2c\u3002\u30db\u30f3\u30c8\u306f\u30c6\u30ad\u30b9\u30c8\u30fb\u30c7\u30fc\u30bf\u3067\u304f\u308c\u308c\u3070\u5b09\u3057\u3044\u306e\u3060\u304c\u3001\u3069\u3046\u3082\u3001\u4e8b\u52d9\u95a2\u4fc2\u306f\u3069\u3053 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,32,16],"tags":[],"class_list":["post-766","post","type-post","status-publish","format-standard","hentry","category-perl","category-ubuntu","category-16"],"_links":{"self":[{"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/posts\/766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=766"}],"version-history":[{"count":1,"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":2735,"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/posts\/766\/revisions\/2735"}],"wp:attachment":[{"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/njet.oops.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}