ããããæ£è¦ããã以ä¸ã®ãããªã³ã¼ãã¯æªãã³ã¼ãã§ãã # usage: Foo->new({ age => 42 }) sub new { my($class, $args) = @_; return bless $args, $class; } ããã¯ãããã·ã¥ãªãã¡ã¬ã³ã¹ã¨æ³å®ããã$argsã®ãã®ã¾ã¾ã¤ãã£ã¦ãããããå¼æ°ã¨ãã¦ããã·ã¥ãªãã©ã«ä»¥å¤ã®ä½ãã渡ãã¨äºæããªãåä½ãå¼ãèµ·ããã¨ããç¹ã§ãã ãã¨ãã°ã以ä¸ã®ãããªä½¿ãæ¹ã¯åé¡ãå¼ãèµ·ããã¾ãã my %args = (age => 20); my $o1 = Foo->new(\%args); my $o2 = Foo->new(\%args); # ãã㧠$o1 㨠$o2 ã¯åããªãã¸ã§ã¯ãã«ãªã£ã¦ãã¾ã ãã®ãããªå ´åã$argsã¯ã³ãã¼ãã¹ãã§ã*1ãã¾ãã¤ãã§ã«ããã·ã¥ãªãã¡ã¬ã³ã¹ã§ã¯ãªãkey-value
{{#tags}}- {{label}}
{{/tags}}