{"width":"100%","author_url":"https://blog.hatena.ne.jp/hakobe932/","blog_url":"https://hakobe932.hatenablog.com/","categories":["\u521d\u3081\u3066\u306ePerl"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakobe932.hatenablog.com%2Fentry%2F20060421%2F1145653245\" title=\"\u7b2c3\u7ae0 \u30ea\u30b9\u30c8\u3068\u914d\u5217 \u305d\u306e3 foreach - \u306f\u3053\u3079\u306b\u3063\u304d \u2668\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","url":"https://hakobe932.hatenablog.com/entry/20060421/1145653245","published":"2006-04-21 06:00:45","title":"\u7b2c3\u7ae0 \u30ea\u30b9\u30c8\u3068\u914d\u5217 \u305d\u306e3 foreach","blog_title":"\u306f\u3053\u3079\u306b\u3063\u304d \u2668","provider_name":"Hatena Blog","height":"190","author_name":"hakobe932","version":"1.0","provider_url":"https://hatena.blog","image_url":"http://ecx.images-amazon.com/images/I/51C59GNSC3L.jpg","description":"\u521d\u3081\u3066\u306ePerl\u30b7\u30ea\u30fc\u30ba\u3002\u914d\u5217\u3092\u3072\u3068\u3064\u3072\u3068\u3064\u51e6\u7406\u3059\u308b\u3068\u304d\u306b\u7d20\u6575\u306a\u3001\u5236\u5fa1\u69cb\u9020foreach\u306b\u3064\u3044\u3066\u3002foreach\u3092\u4f7f\u3046\u3068\u304d\u306b\u306f\u3001\u5236\u5fa1\u5909\u6570\u3068\u5024\u306e\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3002 @langs = qw{Ruby Python Java C/C++ Perl LISP}; foreach $lang (@langs) { print \"$lang\\n\"; }\u3053\u306e\u5236\u5fa1\u5909\u6570(\u3053\u3053\u3067\u306f$lang)\u306e\u6271\u3044\u304c\u3001\u7d50\u69cb\u7279\u5225\u3002foreach\u6587\u306e\u5185\u90e8\u3067\u306f\u3001$lang\u306f\u305d\u306e\u914d\u5217\u306e\u5404\u8981\u7d20\u3092\u76f4\u63a5\u3092\u6307\u3057\u3066\u3044\u308b\u3002\u30b3\u30d4\u30fc\u3092\u4fdd\u6301\u3057\u3066\u308b\u3093\u3058\u3083\u306a\u3044\u306e\u306d\u3002\u305f\u3081\u3057\u3066\u307f\u308b\u3068\u3001 @nums = (1,2,3,4,5); foreach $num (@nu\u2026"}