I am currently working on a script that has to find information in a hash table, and retreive it.

The table is set up like:
<item> <data>

The <data> part is one string, seperated by horizontal tabs, representing columns. Like:
x ($chr9) y ($chr9) z ($chr9) name ($chr9) size ($chr9) score
1 ($chr9) 1 ($chr9) 1 ($chr9) blah ($chr9) 294 ($chr9) 25135
1 ($chr9) 1 ($chr9) 2 ($chr9) booh ($chr9) 954 ($chr9) 58462
... and this continues for like another 4000 lines.

Now I want to be able to retreive for example a top5 with the highest value in the size column or a top5 with highest value in score column.

Is this possible? And if so, can anyone help me getting going with the (I think $hfind and $hget) commands?

Your help is appreciated confused