Any suggestion on how to go about doing this?
Well, you've got a lot of code that's not broken up into subroutines, so it makes it a lot less readable and maintainable, e.g. harder to figure out exactly what you're doing. I assume that you're looking to see how well it performs. If so, you can use
Devel::DProf. Or, if you have two ways of doing something, you can compare them using
Benchmark.
... but I'm having lots of trouble with parsing.
What kind of trouble? Is it slow? Giving errors? Taking up too much resources? Unexpected results?
There are so many parameters to set up. Any suggstions on which ones I need to accomplish my goal.
A few things:
The current code I'm using gives me 1000's of OUT files. There has to be a better way than having to read get of the OUT files.
Well, is there a reason you have to use so many files in the first place? I've found
Log::Std to be very useful for logging information.