Re: multidimensional insertion order



a "hacky" way to do it would be to initialize a counter to 1, and
prepend the counter and an underscore to your key.

then you could sort key on the hash. if the actual key itself is
important (i.e. you need this to be retained) you can take it out
afterwards, using regexs, substr, etc...depending on if you have a
fixed width counter (e.g. 0001, 0002), or not. regex would be s/\d+_//;

hope that helps!

.