I'm getting back into Perl after being away for a few months and am running into a problem with some of my "old" code. I have a loop that grabs a company ID from a file and pushes it into an array called COMPANIES. It then executes the code below which works, except that the count for each unique company is zero. I'm thinking the 'count' (which is only mentioned here, no where else in the code) is the problem but when I try to add a "counter" that doesn't work. Can someone tell me what i'm doing wrong?