How do we access hash of array in a subroutine sent as reference. Is it something like this
Regardssub foo (){ my $hash_ref = shift; foreach my $key (keys %$hash_ref){ foreach my $val(@${$$hash_ref{$key}}){ print $val . "\n"; } } }
Janitored by Arunbear - added code tags, as per Monastery guidelines
In reply to Hashes of arrays problem by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |