{"blog_url":"https://gfx.hatenadiary.org/","width":"100%","provider_name":"Hatena Blog","url":"https://gfx.hatenadiary.org/entry/20091210/1260436683","published":"2009-12-10 18:18:03","author_url":"https://blog.hatena.ne.jp/gfx/","title":"Mouse 0.44 released with duck_type","categories":["Perl"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20091210%2F1260436683\" title=\"Mouse 0.44 released with duck_type - 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>","provider_url":"https://hatena.blog","height":"190","author_name":"gfx","version":"1.0","image_url":null,"blog_title":"Islands in the byte stream (legacy)","type":"rich","description":"\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u30d9\u30fc\u30b9\u306e\u578b\u5236\u7d04\u3092\u5143\u306b\u9762\u767d\u3044\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u304b\u3068\u601d\u3044\uff0cMouse 0.44\u306bMouse::Util::TypeConstraints::duck_type\u3092\u52a0\u3048\u305f\u3002\u3082\u3063\u3068\u3082\uff0cMoose\u306b\u306f\u305a\u3044\u3076\u3093\u524d\u304b\u3089\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u3060\u304c\u3002duck_type\u3068\u306f\uff0c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u7279\u5b9a\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8abf\u3079\u308b\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u578b\u5236\u7d04\u3067\u3042\u308b\u3002 use Any::Moose; use Any::Moose '::Util::Type::Constraints'; has ostream => ( is => 'rw', isa => duck_type([qw(print)]), ); ... sub sa\u2026"}