{"categories":["perl","Perl\u5165\u5b66\u5f0f"],"image_url":null,"provider_name":"Hatena Blog","url":"https://note103.hateblo.jp/entry/2013/11/28/002327","blog_url":"https://note103.hateblo.jp/","blog_title":"the code to rock","author_name":"note103","published":"2013-11-28 00:23:27","version":"1.0","width":"100%","description":"Perl\u5165\u5b66\u5f0f\u6700\u65b0\u5fa9\u7fd2\u554f\u984c\u306e2\u554f\u76ee\u3002 \u8a2d\u554f\u306f\u4ee5\u4e0b\u3002 calc.pl\u3067\u4f5c\u6210\u3057\u305f\u95a2\u6570\u306b\u304a\u3051\u308b\u5f15\u6570\u304c\u6570\u5b57\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u3066\u5224\u5b9a\u3059\u308b\u3088\u3046\u306b\u6539\u826f\u3057\u3066\u304f\u3060\u3055\u3044. \u6570\u5024\u4ee5\u5916\u304c\u5f15\u6570\u3067\u3042\u3063\u305f\u5834\u5408\u306f undef \u3092\u8fd4\u3059\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044. \u56de\u7b54\u306f\u3053\u3093\u306a\u3002 #!/usr/bin/env perl use strict; use warnings; use Data::Dumper; sub calc { my ($num1, $num2) = @_; if ($num1 =~ /\\D/ || $num2 =~ /\\D/) { return \"undef\\n\"; } else { my $add = $n\u2026","height":"190","title":"Perl\u5165\u5b66\u5f0f\u5fa9\u7fd2\u554f\u984c2013-4-2","type":"rich","author_url":"https://blog.hatena.ne.jp/note103/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnote103.hateblo.jp%2Fentry%2F2013%2F11%2F28%2F002327\" title=\"Perl\u5165\u5b66\u5f0f\u5fa9\u7fd2\u554f\u984c2013-4-2 - the code to rock\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog"}