RE: HASH keys in exact order

2005-12-22 Thread Timothy Johnson
, Dzenan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 2:19 PM To: beginners@perl.org Subject: HASH keys in exact order 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 eit

Re: HASH keys in exact order

2005-12-22 Thread Paul Johnson
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 define

HASH keys in exact order

2005-12-22 Thread Causevic, Dzenan
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 or