I have a hash with a name as the key and an integer as the value. Some keys are redundant and for each set of redundants I need to delete all of them except for the one with the highest value.
Also, how can I make this hash accessible outside of the while loop I had it created in? Is there a way to create global variables from local ones?