In your subroutine, you have to dereference the hashrefs in order to use them.
sub doSomethingUseful { my $args = shift; my $users = $args->{users}; my $domains = $args->{domains}; my $path = $args->{path}; if (keys %$users > 1) { print("I was hoping you'd say that."); } }
In reply to Re: Hash as Hash Value
by lostjimmy
in thread Hash as Hash Value
by Kerplunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |