in reply to Re^3: Building an array of hashes, and then sorting keys with each hash
in thread Building an array of hashes, and then sorting keys with each hash

I have 2 different IDs in my hits and I am trying to retrieve best hit for each ID based on best scores as in my post before this.

I have tried to do something like this:

$hITS[0]{score} = $score; $hITS[0]{qID} = $Id; for (@hITS){</p if ($_->{qID} !~ /$id/ && $_->{score} <= $score){</p> $_->{qID} =$id1 ; $_->{score} = $score1;

not sure about the above.

  • Comment on Re^4: Building an array of hashes, and then sorting keys with each hash
  • Download Code