From: Dave Rolsky Date: Sat, 25 Sep 2010 19:43:54 +0000 (-0500) Subject: Fix potential value for set X-Git-Tag: 1.15~94 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3c5756bb90eb16a9b0133fbda38d667bd745b8cd;p=gitmo%2FMoose.git Fix potential value for set --- diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/set.pm index 39a8035..97717cf 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 ]' }