{"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","height":"190","width":"100%","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Funau.hatenadiary.org%2Fentry%2F20100227%2F1267276500\" title=\"foreach \u3092 last \u3067\u629c\u3051\u308b\u3068\u30eb\u30fc\u30d7\u5909\u6570\u306e\u5024\u306f\u4fdd\u5b58\u3055\u308c\u306a\u3044 - \u6628\u65e5\u77e5\u3063\u305f\u3053\u3068\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"unau","categories":["Perl"],"title":"foreach \u3092 last \u3067\u629c\u3051\u308b\u3068\u30eb\u30fc\u30d7\u5909\u6570\u306e\u5024\u306f\u4fdd\u5b58\u3055\u308c\u306a\u3044","author_url":"https://blog.hatena.ne.jp/unau/","blog_url":"https://unau.hatenadiary.org/","description":"\u5909\u6570\u3092\u30eb\u30fc\u30d7\u3067\u56de\u3057\u306a\u304c\u3089\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u306b\u30de\u30c3\u30c1\u3057\u305f\u3068\u3053\u308d\u3067\u30eb\u30fc\u30d7\u3092\u629c\u3051\u51fa\u3057\u3001\u6761\u4ef6\u306b\u3042\u3063\u305f\u5909\u6570\u5024\u3092\u5f97\u305f\u3044\u3001\u3068\u3044\u3046\u3068\u304d\u304c\u3042\u308b\u3002\u305d\u3093\u306a\u3068\u304d\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u305f\u3002 use strict; use warnings; my @candidates = qw/this is a test/; my $code; PREF: foreach $code (@candidates) { last PREF if length($code) == 1; } print \"$code\\n\"; \u5b9f\u884c\u7d50\u679c\u306f [takeyuki@sunya ~]$ perl a.pl Use of uninitialized \u2026","blog_title":"\u6628\u65e5\u77e5\u3063\u305f\u3053\u3068","image_url":null,"published":"2010-02-27 22:15:00","type":"rich","url":"https://unau.hatenadiary.org/entry/20100227/1267276500"}