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

I don't think your suggestion is a viable option when the hash contains millions of keys...

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

  • Comment on Re^2: Pick any key from a very large hash

Replies are listed 'Best First'.
Re^3: Pick any key from a very large hash
by ikegami (Patriarch) on Jul 13, 2009 at 19:18 UTC
    Calling keys in void context resets the iterator and does nothing else. The number of keys in the hash is of no import.

      Oh, sorry, I didn't know that.

      Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."