There is a space for numbers that are five characters in the substring. I changed the 5 to 4 and got 0.0.
I used your code and got an empty output file.
The first IF statement couldn't have a found in there because the condition that makes the statement true is in the substring deeper in the code.
My original code returns what I want in the order I need it but stops before the end of the regex. I commented out different parts of the code to see if the array I was pushing $_ to from the regex was capturing everything, and it is. The code prints out everything I need up until I check for the 0.00 condition. After that it prints out if the 0.00 condition is true but truncates the array before the "ADJ TO TOTALS" line. Is there a reason why testing for that substring condition would truncate the array?