in reply to Re^2: Sort array using a ranking system from separate hash
in thread Sort array using a ranking system from separate hash
Hi Sandy_Bio_Perl,
Apologies for not explaining my question properly in the first place
I recommend you read How do I post a question effectively? and Short, Self Contained, Correct Example. Showing your own coding efforts not only gives people trying to help a basis to start from, it also shows that you're not just trying to abuse PerlMonks as a code writing service. Not only that, boiling down your code into a SSCCE and trying to explain the problem will often help you yourself to figure out the issue at hand.
Anyway, BrowserUk and Marshall already answered your question and provided code; the only difference is that instead of their %freq resp. %histo hashes being populated from the data, you simply need to pre-populate it.
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sort array using a ranking system from separate hash
by Sandy_Bio_Perl (Beadle) on Aug 08, 2016 at 10:48 UTC |