in reply to Open several files and read line by line
Greetings, I have had to solve a problem that seems to have enough in common with yours to maybe give you some ideas : Have a look I hope you will find it helpful
In Section
Seekers of Perl Wisdom