X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FMeta%2FMethod%2FAccessor%2FNative%2FString%2Fprepend.pm;h=c3d7112a347314ea52f116897676f746b3edb0c1;hb=d5f6cadef8d83deaf7dd95302908cd4f61aeab8a;hp=a431f5552bf87a8e919a0610964c65a2ba5f382b;hpb=53a4677c8ac29f814924cd2eb21a760b10bf7f5d;p=gitmo%2FMoose.git diff --git a/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm b/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm index a431f55..c3d7112 100644 --- a/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm +++ b/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm @@ -3,10 +3,6 @@ package Moose::Meta::Method::Accessor::Native::String::prepend; use strict; use warnings; -our $VERSION = '1.19'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - use Moose::Role; with 'Moose::Meta::Method::Accessor::Native::Writer' => { @@ -14,7 +10,7 @@ with 'Moose::Meta::Method::Accessor::Native::Writer' => { qw( _minimum_arguments _maximum_arguments - _optimized_set_new_value + _inline_optimized_set_new_value ) ] }; @@ -27,14 +23,14 @@ sub _potential_value { my $self = shift; my ($slot_access) = @_; - return '( $_[0] . ' . $slot_access . ' )'; + return '$_[0] . ' . $slot_access; } -sub _optimized_set_new_value { +sub _inline_optimized_set_new_value { my $self = shift; my ($inv, $new, $slot_access) = @_; - return $slot_access . ' = $_[0] . ' . $slot_access; + return $slot_access . ' = $_[0] . ' . $slot_access . ';'; } no Moose::Role;