in reply to How to add values of hash by reading from different text files

Unless you have a good reason for not doing so, always use strict in your code

There are several errors in your code:

citromatik