XP is just a number | |
PerlMonks |
Re^4: Pick any key from a very large hashby QM (Parson) |
on Jul 15, 2009 at 21:36 UTC ( [id://780482]=note: print w/replies, xml ) | Need Help?? |
"In particular, calling keys() in void context resets the iterator with no other overhead."Unfortunately, that's on the keys entry, and not on the each entry, which it seems to be more relevant to. If I'm using keys without each, why do I care if keys resets the each iterator? Granted, a little digging would have found this. And perhaps the OP's avoidance of keys caused the miss. -QM
In Section
Seekers of Perl Wisdom
|
|