At least provide the first few pertinent lines of each file. I see no correlation that can be made between your example data. And then at least show that you have tried to use Perl to read the files or something. I would start with Perldoc, write a few lines that prove you put in some effort, then post back here.
Hope that helps
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results.