From: Yuval Kogman Date: Wed, 13 Aug 2008 22:20:38 +0000 (+0000) Subject: use hash ref in Moose::Object::new X-Git-Tag: 0_55_01~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9eb6a9431d4b3fdd4b32318804b83db10ded3da5;p=gitmo%2FMoose.git use hash ref in Moose::Object::new --- diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index 56eaff4..e0f4e81 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -15,7 +15,7 @@ our $AUTHORITY = 'cpan:STEVAN'; sub new { my $class = shift; my $params = $class->BUILDARGS(@_); - my $self = $class->meta->new_object(%$params); + my $self = $class->meta->new_object($params); $self->BUILDALL($params); return $self; }