I think you're missing the intent of the original post. The poster wanted to know how to sort on the value. Otherwise you're correct.
-----Original Message----- From: LRMK To: Kurtis Cc: [EMAIL PROTECTED] Sent: 11/9/02 9:55 AM Subject: Re: Hash Sorting? hashes are do not need to be sorted becouse they are key/value paires if u need to get the values of the ascending order of keys first load the keys to a array using following @keylist = keys %hash; #then sort the key list @keylist = sort @keylist; #now you have keys in ascending order so u can access values in that order eg:- #first 1 is $hash{$keylist[0]} #2 nd $hash{$keylist[1]} #n th one $hash{$keylist} ----- Original Message ----- From: "Kurtis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 5:00 AM Subject: Hash Sorting? Hello all...... Does anyone know how to sort a hash in ascending order on the value? If possible, a little example! Thanks, Kurtis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]