The next time you call each you'll get the next pair out of the hash.
The usual way to do what you likely want is:
foreach my $key (keys %$hash_ref) { my $value = $hash_ref->{$key}; ... }
In reply to Re: What is happening ?
by tilly
in thread problem using foreach and each with hash ref
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |