while(($key, $value) = each %Your_hash){ print "$key contains the value: $value !"; } [download]
In reply to Easier than foreach $key (keys %links) loop by damian1301