Help for this page

Select Code to Download


  1. or download this
    use feature 'state';
    use Type::Params qw( compile compile_named_oo );
    ...
      my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
      return \@slice;
    }
    
  2. 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;
    }
    
  3. or download this
    use feature 'state';
    use Type::Params2;
    ...
      my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
      return \@slice;
    }
    
  4. or download this
    use Type::Params2;
    use Types::Standard -types;
    ...
      my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
      return \@slice;
    }
    
  5. or download this
    signature_for method_with_named_parameters => (
      method => 1,
    ...
      my @slice = @{$arg->list}[ $arg->start .. $arg->end ];
      return \@slice;
    }