On Thu, Dec 22, 2005 at 05:18:35PM -0500, Causevic, Dzenan wrote: > I am trying to print HASH keys in exact order as they are defined, but > "keys %HASH" returns them in a random order, "sort" is not going to > work either because keys are strings that are not defined in the exact > alphabetical order. Is there a way to get %HASH keys in the original > order as they are defined?
Hash keys have no internal order, and assuming any ordering at all will lead to problems. Try Tie::IxHash on CPAN. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>