Have you looked into Text::Diff?
Adapted from the documentation sample:
use strict; use warnings; use Text::Diff; my $diff = diff "file1.txt", "file2.txt", { STYLE => "Context" }; print "$diff\n";
In reply to Re: building an ldif from 2 files
by tokpela
in thread building an ldif from 2 files
by rfransix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |