{"published":"2010-01-26 11:59:14","blog_title":"Islands in the byte stream (legacy)","blog_url":"https://gfx.hatenadiary.org/","width":"100%","description":"\"Perl Best Practices\" recommends to use \"return;\"*1 to return nothing, but it might be wrong in some cases. If you use this idiom for those functions which are expected to return a scalar value, e.g. searching functions, the user of those functions will be surprised at what they return in list conte\u2026","url":"https://gfx.hatenadiary.org/entry/20100126/1264474754","type":"rich","author_name":"gfx","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20100126%2F1264474754\" title=\"The difference of &quot;return;&quot; and &quot;return undef;&quot;  - Islands in the byte stream (legacy)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"version":"1.0","title":"The difference of \"return;\" and \"return undef;\" ","height":"190","author_url":"https://blog.hatena.ne.jp/gfx/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog"}