in reply to Re: Comparing all keys in a hash
in thread Comparing all keys in a hash

You cannot rely on two hashes with the same keys being in the same order. While I'd guess that the key hash values are the same and (maybe) the same hash buckets - that says nothing about the internal order within a bucket. Any algorithm that depends on hash order is flawed unless you a) know exactly how hash order is implemented and b) are comfortable being tied to that specific implementation.

Replies are listed 'Best First'.
Re: Re: Re: Comparing all keys in a hash
by shotgunefx (Parson) on Mar 20, 2003 at 19:10 UTC
    I understand which is why I cautioned against it, though I thought if the SHARE_KEYS option was compiled it might work. Just playing Devil's Advocate.

    -Lee

    "To be civilized is to deny one's nature."