{"width":"100%","categories":["perl","memo"],"published":"2009-03-30 16:59:42","provider_url":"https://hatena.blog","url":"https://dayflower.hatenablog.com/entry/20090330/1238399982","type":"rich","author_name":"dayflower","version":"1.0","title":" Exporter \u3092\u4f7f\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7d99\u627f","height":"190","author_url":"https://blog.hatena.ne.jp/dayflower/","image_url":null,"blog_title":"daily dayflower","blog_url":"https://dayflower.hatenablog.com/","description":"\u304a\u307e\u3048\u306f\u4f55\u3092\u8a00\u3063\u3066\u3044\u308b\u3093\u3060\u307f\u305f\u3044\u306a\u8a71\u3060\u3063\u305f\u3089\u3059\u307f\u307e\u305b\u3093\u3002 \u305f\u3068\u3048\u3070\uff0cfoo() \u3068\u3044\u3046\u95a2\u6570\u3092 export \u3057\u3066\u3044\u308b ModA \u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002 package ModA; use strict; use warnings; use base qw( Exporter ); our @EXPORT = qw( foo ); sub foo { warn sprintf '%s::foo called', __PACKAGE__; } 1; \u3053\u3044\u3064\u3092\u305f\u3068\u3048\u3070 #!/usr/bin/perl use strict; use warnings; use ModA; foo(); \u306e\u3088\u2026","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdayflower.hatenablog.com%2Fentry%2F20090330%2F1238399982\" title=\" Exporter \u3092\u4f7f\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7d99\u627f - daily dayflower\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}