in reply to something weird in this hash sorting
If you need the keys returned in insertion order, see Recipe 5.6 in the Perl Cookbook ... which uses Tie::IxHash.
A user level that continues to overstate my experience :-))
In Section
Seekers of Perl Wisdom