- Show a small sample of your list file.
- Show a small sample of one of your text files.
- Show the Perl code that is causing you trouble.
- Show the actual output (or error messages) you get.
- Show the output you expect.
In other words... what the heck are you talking about?
And please use code tags for your code and data when you do post more info.