in reply to How to use pass and return hashes in a subroutine
&loop_print(\%c); sub loop_print { my $href = shift; foreach (keys %{$href}) { print "$_: ${$href}{$_}\n"; } } [download]