Perlã®Attributeã«ã¤ãã¦ã®ãåå¼· part2 ï½Attribute::Handlersã§ä½ããã©ã°ã¤ã³æ©æ§æè¼ã½ããï½ ãã¦ãååã§ã¯attributeã®æ±ãæ¹ã軽ãè¦ã¦ã¿ã¾ããã ãã ããããªã³ã¼ããæ¯åæ¸ãã®ã¯é¢åã§ãã ããã§Attribute::Handlersã¢ã¸ã¥ã¼ã«ã®ç»å ´ã§ãã æ¦è¦ã¨ãã¦ã¯ãç¬èªattributeã®ä½æãç°¡åã«ãã¦ããã¾ãã ãã¡ããé¢æ°ä»¥å¤ã®attributeã®ä½æãåºæ¥ã¾ãããä»åãé¢æ°ã®ã¿ã«çµãã¾ãã 詳細ã¯perldocãã¦ãã ããã åºæ¬çãªä½¿ãæ¹ãç°¡å㧠use strict; use Attribute::Handlers; sub ah_test1 : ATTR(CODE) { my($package, $symbol, $referent, $attr, $data, $phase) = @_; print "ah_test1:
{{#tags}}- {{label}}
{{/tags}}