robertw has asked for the wisdom of the Perl Monks concerning the following question:
Dear Perlmonks, I have this huge hash that contains many five character keys, I want to make a subroutine that: if i give it for example two characters will foreach hash key calculate how many percent matches: if 1 character is in the hash key it is 1/5, with two it is 2/5 and multiply that number with the number associated with the hash key it has that many percent match with. Does anybody know how I could build such a thing or give helpful advice:)? Thank you so much in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl hash comparison
by Kenosis (Priest) on Aug 17, 2012 at 00:25 UTC | |
by hbm (Hermit) on Aug 17, 2012 at 00:37 UTC | |
by Kenosis (Priest) on Aug 17, 2012 at 01:29 UTC | |
|
Re: Perl hash comparison
by Anonymous Monk on Aug 16, 2012 at 20:14 UTC |