Subject: | Action on unhandled argument |
Is there a way to handle arguments that aren't on the list - that would catch typos, something like:
my $tmpl = {
firstname => { required => 1, defined => 1 },
lastname => { required => 1, store => \$x },
default => sub { warn "unexpected argument $_" },
};