in reply to Re^2: wdiff in perl?
in thread wdiff in perl?

In what way is it different from wdiff? I can't see how you can take two files, get the diff, and then apply it to get a third file. You need to start with three files ("base", "branch 1", and "branch 2") to get a fourth ("combined"). What you do is take the diff of branch 1 with base, and apply that diff to branch 2. It's not quite so easy because you'll have to deal with non-obvious matches:

I'd look at Algorithm::Diff::Apply to see if that would help.