in reply to Improving the efficiency of code when processed against large amount of data

It's not clear why you need to chuck that stuff into a hash, but that should not have much effect on execution time compared to the file I/O.

However there are a few foibles in your code that you should consider addressing:


DWIM is Perl's answer to Gödel