in reply to Printing Output in different way

This is a FAQ. From the command line:
perldoc -q order

or online at:

How can I make my hash remember the order I put elements into it?