Re: associative array not looking like I expect

[email protected] (John Lenton) Fri, 26 Apr 2002 13:28:49 -0300
Newsgroups perl.scripts
Message-ID <[email protected]>
On Thu, Apr 25, 2002 at 04:05:27PM -0500, P. S. Starkey wrote:
> I have some perl script (shown below) and I am wondering why the associative
> array being built ends up looking like the printout of the array as shown
> after the code.  I would have assumed the array entries would have been
> shown in the same order they are put into the array but that is not
> happening.

this is covered in the perldata manpage: hases aren't stored in
any order. All you have is the guarantee that once you have a
hash, all iterators will retrieve the elements in the same order.

-- 
John Lenton ([email protected]) -- Random fortune:
T-shirt of the Week:
	I'm not excited, I'm cold!