use strict;
use warnings;
-our $VERSION = '1.19';
-$VERSION = eval $VERSION;
our $AUTHORITY = 'cpan:STEVAN';
use Moose::Role;
_minimum_arguments
_inline_process_arguments
_inline_check_arguments
- _optimized_set_new_value
+ _inline_optimized_set_new_value
_return_value
)
]
. '})';
}
-sub _optimized_set_new_value {
+sub _inline_optimized_set_new_value {
my $self = shift;
my ($inv, $new, $slot_access) = @_;
- return '@return = defined $len '
- . '? (splice @{ (' . $slot_access . ') }, $idx, $len, @_) '
- . ': (splice @{ (' . $slot_access . ') }, $idx)';
+ return (
+ '@return = defined $len',
+ '? (splice @{ (' . $slot_access . ') }, $idx, $len, @_)',
+ ': (splice @{ (' . $slot_access . ') }, $idx);',
+ );
}
sub _return_value {