&loop_print(\%c); sub loop_print { my $href = shift; foreach (keys %{$href}) { print "$_: ${$href}{$_}\n"; } }
In reply to Re: How to use pass and return hashes in a subroutine
by le
in thread How to use pass and return hashes in a subroutine
by chariscomp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |