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=07a77d6207c743db2180c1008d0087b93bd602bb;hpb=7f5ec80d99caad6df365a018719f875465358f17;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 07a77d6..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.15'; -$VERSION = eval $VERSION; -our $AUTHORITY = 'cpan:STEVAN'; - use Moose::Role; with 'Moose::Meta::Method::Accessor::Native::Writer' => { @@ -24,15 +20,17 @@ sub _minimum_arguments { 1 } sub _maximum_arguments { 1 } sub _potential_value { - my ( $self, $slot_access ) = @_; + my $self = shift; + my ($slot_access) = @_; - return "( \$_[0] . $slot_access )"; + return '$_[0] . ' . $slot_access; } sub _inline_optimized_set_new_value { - my ( $self, $inv, $new, $slot_access ) = @_; + my $self = shift; + my ($inv, $new, $slot_access) = @_; - return "$slot_access = \$_[0] . $slot_access"; + return $slot_access . ' = $_[0] . ' . $slot_access . ';'; } no Moose::Role;