in reply to Re: Pick any key from a very large hash
in thread Pick any key from a very large hash

Yes, by using keys or values... exactly what I don't want :-)

-- Time flies when you don't know what you're doing

Replies are listed 'Best First'.
Re^3: Pick any key from a very large hash
by hobbs (Monk) on Jul 12, 2009 at 11:25 UTC
    "In particular, calling keys() in void context resets the iterator with no other overhead."
      "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
      --
      Quantum Mechanics: The dreams stuff is made of

Re^3: Pick any key from a very large hash
by jwkrahn (Abbot) on Jul 11, 2009 at 22:27 UTC

    Or: "it can be reset by reading all the elements from the hash"