I have two text files which need to have the same values.
$ diff A.txt B.txt
4a5
> I have this extra line.
$
Open files in Perl
open (ONE, "<A.txt");
open (TWO, "<B.txt");
How can I do such a diff from within Perl? Does Perl have a inbuilt diff or do I need to use the unix diff
utility? I don't want to implement my own diff algorithm for this.
I do need the information as to where my files differ, but I do not need to use the unix diff
utility necessarily. That was just an example.