Subj : Re: Text Compare To : Angus Mcleod From : Sniper Date : Tue Feb 01 2005 07:56 pm -=> Angus Mcleod wrote to All <=- AM> I'm working on a little Perl ditty to do a 3-way compare on text.dat AM> files. It assumes that there has been a fork where an original file AM> was modified, and now a new version of the original has been released. AM> It compares all three files line-by-line and works on the premise that: AM> 1) If the new verion does not differ from the old, (no official AM> change) AM> then the users version, modified or not, can be used. AM> 2) If the users version does not differ from the original, so the new AM> version (changed or not) can be used. AM> 3) Otherwise, the three files are all different and it's decision-time AM> as AM> to whether to use the users modified line or the official updated AM> line. AM> In case #3, what would you suggest the program do? I don't know if it AM> makes more sense to go with the users modified version, the official AM> new version, or both (with one commented out, and if so, WHICH one...) Can you have it list the differences and give 2 options? Replace with the new or leave alone. At least, that would be my thought in the matter, at least that way it would show the 2 lines, and let whomever decide if they want to keep the change or not. .... Insanity is hereditary. You get it from your kids. --- MultiMail/Linux v0.45 þ Synchronet þ Killed In Action - telnet://kiabbs.org .