in reply to sort hash based on values


yeah rite. get the keys based on the sorted values.

i got it now. here it is,
@sort_keys = sort { $hoa{$a}[0] cmp $hoa{$b}[0] } keys %hoa;

Thanks
Senthil