X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FArray%2Fnatatime.pm;h=6fc4a13fc2a54e7279153add1f4a99e9aac33573;hb=bb09ad9144e7ee7b2cad8a90725267f591346406;hp=63d0be755903a1192ad85a0712831d0a7c77bc0b;hpb=f4b86ac0e1fd7ff8a180f2f8332821170db5371e;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/Array/natatime.pm b/lib/Moose/Meta/Method/Accessor/Native/Array/natatime.pm index 63d0be7..6fc4a13 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/Array/natatime.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/Array/natatime.pm @@ -6,7 +6,7 @@ use warnings; use List::MoreUtils (); use Params::Util (); -our $VERSION = '1.16'; +our $VERSION = '1.17'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -42,7 +42,7 @@ sub _inline_return_value { my ( $self, $slot_access ) = @_; return - "my \$iter = List::MoreUtils::natatime( \$_[0], \@{ $slot_access } );" + "my \$iter = List::MoreUtils::natatime( \$_[0], \@{ ($slot_access) } );" . "\n" . 'if ( $_[1] ) {' . "\n" . 'while (my @vals = $iter->()) {' . "\n"