rrwo has asked for the wisdom of the Perl Monks concerning the following question:
Here's a question for Perl-core gurus:
If during the execution of a Perl script on a specific machine during a specific session, I have a hash that I have not made changes to, can I be sure that each time I produce an array
@list = (keys %hash);that list will always be in the same (consistent) order while that script is running on that machine in a specific version of Perl?
(I don't care if the order is different for different versions of Perl, on different platforms; just that while a script is running during a particular session that the order be consistent.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Consistent order of (keys %hash)?
by Fletch (Bishop) on Nov 09, 2001 at 00:52 UTC | |
|
Re: Consistent order of (keys %hash)?
by perrin (Chancellor) on Nov 09, 2001 at 01:08 UTC | |
by clintp (Curate) on Nov 09, 2001 at 01:30 UTC | |
by tye (Sage) on Nov 09, 2001 at 01:57 UTC | |
|
Re: Consistent order of (keys %hash)?
by dragonchild (Archbishop) on Nov 09, 2001 at 03:16 UTC | |
|
Re: Consistent order of (keys %hash)?
by Masem (Monsignor) on Nov 09, 2001 at 01:42 UTC |