X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FHash%2Fvalues.pm;h=57e9336576ce85a6c5a4bf743837d11c47def864;hb=c40e4359e7a5ad21af41e42c5a3746c193da9777;hp=2845caeeeaa06be543f64cb9a71d4d0cc2babdfc;hpb=1d06edbfadf08687599bd8c8fd711f8c14cc2363;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/values.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/values.pm index 2845cae..57e9336 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Hash/values.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Hash/values.pm @@ -5,10 +5,6 @@ use warnings; use Scalar::Util qw( looks_like_number ); -our $VERSION = '1.16'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - use Moose::Role; with 'Moose::Meta::Method::Accessor::Native::Reader' => @@ -17,10 +13,10 @@ with 'Moose::Meta::Method::Accessor::Native::Reader' => sub _maximum_arguments { 0 } sub _return_value { - my $self = shift; - my $slot_access = shift; + my $self = shift; + my ($slot_access) = @_; - return "values \%{ ($slot_access) }"; + return 'values %{ (' . $slot_access . ') }'; } no Moose::Role;