{"version":"1.0","title":"\u3010\u3053\u308c\u3060\u3051\u899a\u3048\u308a\u3083\u306a\u3093\u3068\u304b\u4f7f\u3048\u308bPerl\u30e1\u30e25\u3011\u5165\u51fa\u529b","provider_url":"https://hatena.blog","author_name":"Naotsugu","type":"rich","published":"2009-11-20 22:41:44","provider_name":"Hatena Blog","blog_url":"https://blog1.mammb.com/","image_url":null,"height":"190","blog_title":"A Memorandum","author_url":"https://blog.hatena.ne.jp/Naotsugu/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20091120%2F1258724504\" title=\"\u3010\u3053\u308c\u3060\u3051\u899a\u3048\u308a\u3083\u306a\u3093\u3068\u304b\u4f7f\u3048\u308bPerl\u30e1\u30e25\u3011\u5165\u51fa\u529b - A Memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u30e6\u30fc\u30b6\u5165\u529b \u30b9\u30ab\u30e9\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u53d7\u3051\u308b chomp($line = <STDIN>) \u30ea\u30b9\u30c8\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u53d7\u3051\u308b chomp(@lines = <STDIN>) \u5165\u529b\u3092\u7d42\u4e86\u3059\u308b\u306b\u306fCtrl-D\uff08Win\u3067\u306fCtrl-z\uff09 \u30e6\u30fc\u30b6\u304b\u3089\u306e\u5fdc\u7b54\u8aad\u307f\u53d6\u308a \u30e6\u30fc\u30b6\u304b\u3089\u306e\u5fdc\u7b54\u8aad\u307f\u53d6\u308a print STDOUT \"Enter a number: \"; # \u6570\u306e\u5165\u529b\u3092\u4fc3\u3059 chop($number = <STDOUT>) # \u6570\u3092\u8aad\u307f\u8fbc\u3080(\u6539\u884c\u6587\u5b57\u306e\u9664\u53bb) print STDOUT \"The number is $number.\\n\"; # \u305d\u306e\u6570\u3092\u8868\u793a\u3059\u308b chop\u306f\u6587\u5b57\u5217\u306e\u672b\u5c3e\u306e\u6587\u5b57\u3092\u7121\u6761\u4ef6\u3067\u524a\u9664\u3059\u308b\uff08\u305d\u3057\u2026","categories":["Perl"],"width":"100%","url":"https://blog1.mammb.com/entry/20091120/1258724504"}