You'll get that situation if you have something like
while (...each(%h)...) { ... last if ...; ... }
The solution is
keys(%h); # Reset iterator. while (...each(%h)...) { ... last if ...; ... }
Note that keys does not actually compute the list of keys in void context.
In reply to Re^3: keys and values order on a hash
by ikegami
in thread keys and values order on a hash
by citromatik
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |