Your count variables ($match_count, etc.) are declared inside the
foreach loop, yet you try to print them outside. I suggest you declare them before the outer
while loop and then:
$match_count +=()=($line=~/Memphis/g);
$actris_count+=()=($line=~/ACTRIS/g);
$sef_count +=()=($line=~/South East Florida/g);
Not sure what the trailing block { } is after the last one, bad copy/paste?
Oh, and the
chomp will chomp $_ by default, you probably mean
chomp($line) although it does not actually seem to be needed here.
Update: ...and you are missing a
closedir(DIR); after the
while loop.