- or download this
sub foobar {
my %arg = @_;
my ($foo, $bar) = @arg{qw/ -foo -bar /};
# ..
}
- or download this
my ($foo, $bar, %arg) = @_;
my ($baz, $quux) = @arg{qw(baz quux)};
- or download this
sub moo {
my $self = shift;
my ($foo, $bar) = @$self{qw(foo bar)};
# ..
}