note
goeb
You most likely want to use something like this:
<code>
while (($key, $value) = each %$hash_ref) {
# do something...
}</code>
An example like this is also mentioned in the documentation for [each]. [tilly] already explained the reason your loop ends after the first key and value.
789690
789694