We all know that you can't rely on the order that hash items are stored in.
I just want to point out that unless you are using Perl 5.8.1 or above, the order of hash is 'predictable' and stays the same for the same set of input data.
There was a previous discussion node 304286 on the order of hash, in which I explained why the order of hash is not random.