in reply to hash unorderly output

Try this link

http://www.devdaily.com/perl/edu/qanda/plqa00016/