Help for this page

Select Code to Download


  1. or download this
    use Params::Validate qw (validate_with);
    sub example_method {
    ...
        my ($handle, $thing) = @args{'handle','thing'};
        #...
    }
    
  2. or download this
    use Class::ParmList qw (simple_parms);
    sub example_method {
    ...
        my ($handle, $thing) = simple_parms(['handle','thing'],@_);
        #...
    }
    
  3. or download this
     use Sub::Parms;
     sub example_method {
    ...
    
        #...
     }
    
  4. or download this
    sub example_method {
       my $self = shift;
    ...
       my ($handle,$thing) = @args{'handle','thing'};
       #...
     }