file compare in perl
I am new to perl .
I have two text files:
file1 contain two lines:
mahesh
bharti
file2 contain two lines:
mahesh
orange
as you can see difference between two files is bha开发者_C百科rti
and orange
. Somehow i am able to print the difference. But my requirement is it should print as below.
Difference of file as below:
File1 contain: bharti
FIle2 contain: orange
my current code written in perl as below
Use the Text::Diff module.
精彩评论