From: Dave Rolsky Date: Sat, 25 Sep 2010 20:00:15 +0000 (-0500) Subject: Don't turn hash into array when copying the old hash value X-Git-Tag: 1.15~88 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a7116c4cfacdb17ebbc20bf0d2ee25bc8c22918a;p=gitmo%2FMoose.git Don't turn hash into array when copying the old hash value --- diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm index f9d808b..c6828e6 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Hash/Writer.pm @@ -23,7 +23,7 @@ sub _new_values {'@values'} sub _inline_copy_old_value { my ( $self, $slot_access ) = @_; - return '{ @{' . $slot_access . '} }'; + return '{ %{' . $slot_access . '} }'; } 1;