X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FHash%2Fcount.pm;h=8b56c1dac8861cbaaa159b5941c7574a1af1f2da;hb=6e50f7e9f27e52d6816b9a726803bedf1b3127de;hp=5057e21717c023e511a7f4e74c0c4620b4dea818;hpb=f4b86ac0e1fd7ff8a180f2f8332821170db5371e;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Hash/count.pm b/lib/Moose/Meta/Method/Accessor/Native/Hash/count.pm index 5057e21..8b56c1d 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Hash/count.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Hash/count.pm @@ -5,7 +5,7 @@ use warnings; use Scalar::Util qw( looks_like_number ); -our $VERSION = '1.16'; +our $VERSION = '1.19'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -17,10 +17,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 "scalar keys \%{ $slot_access }"; + return 'scalar keys %{ (' . $slot_access . ') }'; } no Moose::Role;