Help for this page

Select Code to Download


  1. or download this
    Search::InvertedIndex::Update->new({
                         -group => $group,
    ...
                               $key2 => 15,
                           },
    });
    
  2. or download this
    Search::InvertedIndex::Update->new($group, $index, $index_data, {
                               $key0 => 10,
    ...
                               $key2 => 15,
                           }
    );
    
  3. or download this
    use Params::Validate  qw (validate);
    $Params::Validate::NO_VALIDATION = 1;
    sub params_validate {
        my ($handle, $thing) = @{(validate(@_, { handle => 1, thing => 1 }
    +))}{'handle','thing'};
    }
    
  4. or download this
    use Class::ParmList qw (simple_parms);
    sub simple_parms_args {
        my ($handle, $thing) =  simple_parms(['handle','thing'], @_);
    }
    
  5. or download this
    use Acme::Sub::Parms qw(:no_validation);
    
    ...
            my $thing  : thing;
        )
    }
    
  6. or download this
    sub one_step_args {
        my ($handle, $thing) =  @{{@_}}{'handle','thing'};
    }
    
  7. or download this
    sub std_args {
        my %args = @_;
        my ($handle, $thing) =  @args{'handle','thing'};
    }
    
  8. or download this
    sub caseflat_std_args {
        my %args;
    ...
    
        my ($handle, $thing) =  @args{'handle','thing'};
    }
    
  9. or download this
    sub positional_args {
        my ($handle, $thing) =  @_;
    }
    
  10. or download this
    #!/usr/bin/perl
    
    ...
        my ($handle, $thing) =  @args{'handle','thing'};
    }
    
  11. or download this
     
                     Rate validate simple_parms caseflat bindparms one_ste
    +p std_args postnl_args
    ...
    std_args     296736/s    1094%         620%     209%       19%      18
    +%       --        -68%
    postnl_args  925926/s    3626%        2147%     865%      271%     268
    +%     212%          --
    
  12. or download this
    #!/usr/bin/perl
    
    ...
        my ($handle, $thing) =  @args{'handle','thing'};
    }
    
  13. or download this
     
                    Rate std_args_d std_args parm2_sub double_sub anon_sub
    +   one_sub
    ...
    anon_sub   2469136/s       530%     527%      319%       123%       --
    +       -9%
    one_sub    2702703/s       589%     586%      358%       145%       9%
    +        --