From: Dave Rolsky Date: Sat, 25 Sep 2010 20:07:31 +0000 (-0500) Subject: Make sure potential value is a hash ref X-Git-Tag: 1.15~86 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe4e0a8c56772d38e28a37a50f7da05da93e0d63;p=gitmo%2FMoose.git Make sure potential value is a hash ref --- diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm index 97717cf..89b238b 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm @@ -47,7 +47,7 @@ sub _adds_members { 1 } sub _potential_value { my ( $self, $slot_access ) = @_; - return "%{ $slot_access, \@_ }"; + return "{ %{ $slot_access }, \@_ }"; } sub _new_members { '@_[ @values_idx ]' }