http://qs321.pair.com?node_id=120490


in reply to Re (tilly) 2: passing subroutine arguments directly into a hash
in thread passing subroutine arguments directly into a hash

sub excise_arg { my $args = shift; my $arg_name = shift; if (exists $args{$arg_name}) { return delete $args{$arg_name}; } [...]

Shouldn't that be

if (exists $args->{$arg_name}) { return delete $args->{$arg_name}; }
as you are passing a hashreference into your function?

Apart from that detail I really like this way :)

-- Hofmator