in reply to Re: foreach loop question
in thread foreach loop question

I always figured that each and related functions keys and values iterated over the hash from start to finish with the order being determined by the hashing algorithm. Can an internals person shed some light on what determines this "essentially random order"?


"The dead do not recognize context" -- Kai, Lexx

Replies are listed 'Best First'.
Re: Re: Re: foreach loop question
by chromatic (Archbishop) on Apr 16, 2003 at 19:54 UTC

    Unless you run the hashing algorithm in your head (I believe it's in hv.h), it'll look sufficiently random. :)