Without sight of the files you are comparing it is difficult to provide a solution. You mention segment names so is it safe to assume that each file contains the same segments but the contents of each segment may differ between files. If this is the case a better approach would be to break each file into segments and compare those, e.g. file test1 segment EFGH compared to file test2 segment EFGH rather than comparing the whole files. That way you can keep track of which segments differ.
I hope my guess is close and this is helpful. Please post small example data files so that we can give better advice.
Cheers,
JohnGG
In reply to Re^3: Need to have perl script to compare two txt files and print difference along with under which segment the difference is
by johngg
in thread Need to have perl script to compare two txt files and print difference along with under which segment the difference is
by User_04271983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |