persianswallow has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks.i have two problems with hashes.i have two hashes each of them contains an array for each key.i have two number in each array.i want to compare keys in these two hashes and if keys where equal do some function on numbers in array and i am not sure that in array for each key order of numbers will change or not,i mean hash will save the arrays as i give or not.
%genome1=(a=>(10,15), b=>(3,7), c=>(9,14)); %genome2=(d=>(3,21), a=>(3,4), g=>(5,10), b=>(2,7));
in above hashes i want to calculate for a and b that are similar in two hashes.thank you for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array in hashes
by ikegami (Patriarch) on Jul 29, 2011 at 08:25 UTC | |
by persianswallow (Novice) on Jul 29, 2011 at 09:04 UTC | |
by moritz (Cardinal) on Jul 29, 2011 at 09:18 UTC | |
by persianswallow (Novice) on Jul 29, 2011 at 09:36 UTC | |
by moritz (Cardinal) on Jul 29, 2011 at 09:54 UTC | |
by fisher (Priest) on Jul 29, 2011 at 10:07 UTC | |
|