From: Yuval Kogman Date: Wed, 13 Aug 2008 22:37:35 +0000 (+0000) Subject: pass hashref to Attr->_new X-Git-Tag: 0_64_01~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb75020f6a75898378d873583561654f3519ea92;p=gitmo%2FClass-MOP.git pass hashref to Attr->_new --- diff --git a/lib/Class/MOP/Attribute.pm b/lib/Class/MOP/Attribute.pm index 7d9856c..a2c75d6 100644 --- a/lib/Class/MOP/Attribute.pm +++ b/lib/Class/MOP/Attribute.pm @@ -51,7 +51,7 @@ sub new { confess("A required attribute must have either 'init_arg', 'builder', or 'default'"); } - $class->_new(%options); + $class->_new(\%options); } sub _new {