Scripting >> Perl >> How to loop through a hash given it's hash reference



eg. given $hash contains the hash variable reference
 
foreach $k (keys %{$hash})
{
  print $k;
}