http://www.perlmonks.org?node_id=243296


in reply to Printing a hash in a specific order?

A Hash does not have any order by definition. You speak of "template hash output that I am unaware of", and that can't imply a certain order of the hash keys. You can only generalize by sorting the keys lexically (or however), not "ordering". Your example _knows_ the hash it outputs and provides they keys to be output with their values. A "generic" way can only be generic, a hash is 'generically' without order (actually there is an order that depends on the way the hash is hashed).

Data::Dumper is a "generic" way of outputting various data structues ;)

--
http://fruiture.de