ã·ã³ãã«ãã¼ãã«ãæä½ããã¨ãã«"no strict 'refs'"ã§ä¸æçã«strictãç¡å¹åãããã¨ã¯ãããããï¼ãããã°ãã«ãããã°ãç´ãè¾¼ãå¯è½æ§ãããã ãã¨ãã°ï¼ä»¥ä¸ã®ããã«ã¢ã¯ã»ãµãåçã«çæããã³ã¼ãã¯CPANã®ãããããã«ããã sub make_accessor{ my($class, $property) = @_; no strict 'refs'; # simple read-only accessor *{$class. '::' . $property} = sub{ my($self) = @_; return $self->{$property}; } } ãã®ãããªã³ã¼ãã«ãã£ã¦çæãããã¡ã½ãããï¼æ£ãããªãã¸ã§ã¯ãã«å¯¾ãã¦ä½¿ãåã«ã¯åé¡ãªãããããï¼ãã®ã¡ã½ãããã¯ã©ã¹ã¡ã½ããã¨ãã¦å¼ã³åºãã¨ï¼ã°ãã¼ãã«å¤æ°${$self}ãåç §ãï¼ãã®å¤ãããã·
{{#tags}}- {{label}}
{{/tags}}