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