Hi ! I'm interested in your project of parsing EDI files. I know well Perl as CPAN tester / author, and I'm part of AUTHORS of Perl. I work as software engineer for 20 years. I can create the script that split the input data into several files following your instructions. If you have any question, just ask.
Have a good day.