pass hashref to Attr->_new
Yuval Kogman [Wed, 13 Aug 2008 22:37:35 +0000 (22:37 +0000)]
lib/Class/MOP/Attribute.pm

index 7d9856c..a2c75d6 100644 (file)
@@ -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 {