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.
In reply to Re^3: How to use multidimensional hashes
by x-lours
in thread How to use multidimensional hashes
by Perlseeker_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |