in reply to Hash order randomization is coming, are you ready?

Has perlfaq/perlfaq4 been "vetted" for this issue of hash order randomization?

@hash1{ keys %hash2 } = values %hash2;

  • Comment on Re: Hash order randomization is coming, are you ready? (perlfaq4)

Replies are listed 'Best First'.
Re^2: Hash order randomization is coming, are you ready? (perlfaq4)
by Corion (Patriarch) on Jul 19, 2013 at 07:36 UTC

    For a single hash, keys and values are (still) guaranteed to return the items in the same order, as long as the hash remains unmodified between the calls; see keys. This means that this exact line still keeps working. Doing otherwise would likely break much code in very hard to detect ways.