Mjpaddy has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to make script in perl which compare two files (format doesn't matter), both files have few similar data but whatever diff between two should be print out error.txt.
Suppose file1 and file2 are files which has to compare but the logic is compare file2 over file1 and whatever changes in file2 should be printed as "Error: lineno:(no. at the point of mismatch) please check error" in error.txt.
file1: Figure 1. Somatotropes are organized into. Figure 2. Comparing two xml files organized into. Figure 3. Somatotropes presentation of GH1, file2: Figure 1. children with acquired organized into. Figure 2. Severe anterior hypoplasia, Figure 3. Somatotropes presentation of GH1, Error.txt: Error:lineno:2 please check mismatch Error:lineno:4 please check mismatch
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl: How to compare two files
by Athanasius (Archbishop) on Aug 26, 2014 at 07:26 UTC | |
by Mjpaddy (Acolyte) on Aug 26, 2014 at 09:05 UTC | |
by choroba (Cardinal) on Aug 26, 2014 at 09:43 UTC | |
|
Re: Perl: How to compare two files
by thanos1983 (Parson) on Aug 26, 2014 at 09:19 UTC | |
|
Re: Perl: How to compare two files (diff)
by Anonymous Monk on Aug 26, 2014 at 07:24 UTC |