in reply to Re^2: How to use multidimensional hashes
in thread How to use multidimensional hashes
if you count/sum only the A B C D ... it is normal to get
FILE_NAME A B C D
CHECK 2 3 2 1
JAPAN A is in FILE_A and FILE_B so 2 times
CHINA B is in FILE_A (twice) and FILE_B so 3 times
MALY C is in FILE_A and FILE_B so 2 times
if you don't want to count/sum after the first time, tou have to test the exists before.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to use multidimensional hashes
by Perlseeker_1 (Acolyte) on Jan 31, 2014 at 16:00 UTC | |
by Pickwick (Beadle) on Feb 01, 2014 at 21:11 UTC |