in reply to parsing lists

Do you already have pre-determined file names in place?

my @files = qw( A.csv B.csv C.csv D.csv E.csv );


I guess you might want to come up with something extensible so that the list can automatically expand.

The $count variable is really unnecessary here. You could use $. (unless there are criteria where you might skip lines)

You probably don't want to open the OUTPUT every line. So... (psuedo-untested-code to give you an idea)
open( OUTPUT, $files[0] ) or die... while( <DISTLISTS> ) { if (not $. % 200) { close OUTPUT; open OUTPUT, $files[$./200] or die... } print OUTPUT, $dist_split; } close OUTPUT;


Just an idea.
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs