develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #55952] Iteration order of hash keys doesn't appear random

Thread Previous
From:
Nicholas Clark
Date:
June 18, 2008 07:37
Subject:
Re: [perl #55952] Iteration order of hash keys doesn't appear random
Message ID:
20080618143736.GI99534@plum.flirble.org
On Wed, Jun 18, 2008 at 01:24:10AM +0200, Aristotle Pagaltzis wrote:
> * Jonathan Sailor <perlbug-followup@perl.org> [2008-06-18 00:55]:
> > On 5.8.8, I created a hash with a bunch of key/value pairs, and
> > they are always returned by the hash's iterator in the same
> > order.
> 
> That is exactly as it should be.

Except that the documentation in perlsec said otherwise until late last
year (post 5.10.0's release). Fixed with this change:

http://public.activestate.com/cgi-bin/perlbrowse/p/32688

The documentation being incorrect may explain things.

Nicholas Clark

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About