Subj : Text Compare To : Angus Mcleod From : Digital Man Date : Tue Feb 01 2005 02:50 pm Re: Text Compare By: Angus Mcleod to All on Tue Feb 01 2005 06:38 pm > I'm working on a little Perl ditty to do a 3-way compare on text.dat > files. It assumes that there has been a fork where an original file was > modified, and now a new version of the original has been released. > > It compares all three files line-by-line and works on the premise that: > > 1) If the new verion does not differ from the old, (no official change) > then the users version, modified or not, can be used. > > 2) If the users version does not differ from the original, so the new > version (changed or not) can be used. > > 3) Otherwise, the three files are all different and it's decision-time as > to whether to use the users modified line or the official updated > line. > > In case #3, what would you suggest the program do? I don't know if it > makes more sense to go with the users modified version, the official new > version, or both (with one commented out, and if so, WHICH one...) Prompt the user and ask which version to use? digital man Snapple "Real Fact" #67: There are 18 different animal shapes in the Animal cracker zoo. .