It's not what you want, but an ordinary hash behaves the same way:
The each call for the print loop only finds three keys. You have to manually reset the each iterator if you do not read all pairs or keys. That's typically done with keys %h; in void context.my %h; @h{a..d}=1..4; while (my ($k,$v) = each %h) { last } while (my $k = each %h) { print $k } __END__ abd
After Compline,
Zaxo
In reply to Re: Caller, caller, wherefore art thou, caller?
by Zaxo
in thread Caller, caller, wherefore art thou, caller?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |