in reply to The strange ordering of hash values
This happens because you are storing your values in a hash, and sorted position is not maintained in a hash. If you want to maintain the ordering, use an array instead.
BTW, hashes are usually populated in this manner:
%hash = ("one" => 1 , "Two" => 2, "three" => 3, "four" => 4);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Even better
by Jedaļ (Initiate) on Apr 19, 2007 at 21:13 UTC | |
|