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 ;)
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Printing a hash in a specific order?
by Limbic~Region (Chancellor) on Mar 15, 2003 at 15:23 UTC | |
by fruiture (Curate) on Mar 15, 2003 at 16:41 UTC |