Hi All,
I would like to ask opinion from perl experts.
I want to compare 2 files and show the differences in a text file.
For example, if i open File A an B in notepad
File A:
apple orange grape
apple orange grape kiwi
apple orange grape kiwi melon pineapple
orange grape kiwi pineapple
apple orange grape kiwi melon pineapple
apple orange grape kiwi
File B:
apple orange grape
apple orange grape kiwi
orange grape kiwi pineapple
apple orange grape kiwi melon pineapple
apple orange grape kiwi
Quote:
line3 is missing in File B
|
So if I did a File compare (line by line),
the differences will be in line3, line4, line5, line 6.
But I dont want it to be like that.
I want it to be like this
Quote:
line1: no differences
line2: no differences
line3: differences detected. Line 3 is missing from File B
line4: no differences
line5: no differences
line6: no differences
|
Can Text:: Diff able to perform the work.
Please advice.
John