my_sub(%hash) sub my_sub(\%) { my $hash_ref = shift; map { print "$_ => $$hash_ref{$_} \n" } keys %$hash_ref; }
In reply to Re: How Do I pass a hash to a subroutine?
by nite_man
in thread How Do I pass a hash to a subroutine?
by filmo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |