- or download this
use feature 'state';
use Type::Params qw( compile compile_named_oo );
...
my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
return \@slice;
}
- or download this
use Type::Params qw( wrap_subs compile_named_oo );
use Types::Standard -types;
...
my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
return \@slice;
}
- or download this
use feature 'state';
use Type::Params2;
...
my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
return \@slice;
}
- or download this
use Type::Params2;
use Types::Standard -types;
...
my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
return \@slice;
}
- or download this
signature_for method_with_named_parameters => (
method => 1,
...
my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
return \@slice;
}