{"author_url":"https://blog.hatena.ne.jp/gfx/","title":" \"Constant subroutine foo::bar redefined\" \u3092\u6291\u5236\u3059\u308b","url":"https://gfx.hatenadiary.org/entry/20110224/1298524073","width":"100%","published":"2011-02-24 14:07:53","blog_url":"https://gfx.hatenadiary.org/","author_name":"gfx","categories":[],"image_url":null,"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20110224%2F1298524073\" title=\" &quot;Constant subroutine foo::bar redefined&quot; \u3092\u6291\u5236\u3059\u308b - 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>","height":"190","version":"1.0","provider_name":"Hatena Blog","blog_title":"Islands in the byte stream (legacy)","type":"rich","description":"\u666e\u901a\u306e\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306e\u518d\u5b9a\u7fa9\u306f \"no warnings 'redefined'\" \"no warnings 'redefine'\" \u3067\u8b66\u544a\u3092\u6291\u5236\u3067\u304d\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u5b9a\u6570\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u306f\u8b66\u544a\u306e\u3067\u308b\u6761\u4ef6\u304c\u3061\u3087\u3063\u3068\u9055\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u518d\u5b9a\u7fa9\u8b66\u544a\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3068\u304d\u3067\u3059*1\u3002 use warnings 'redefine' (or -w switch) \u306e\u3082\u3068\u3067\u3042\u308b \u5bfe\u8c61\u304c\u5b9a\u6570\u30b5\u30d6\u30eb\u30fc\u30c1\u30f3\u304b\u3064\u518d\u5b9a\u7fa9\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u5024\u304c\u7570\u306a\u308b \u4f8b\uff1a #!perl -w use strict; use constant FOO => 10; # first definition use constant FO\u2026"}