in reply to difference between two files
Hi varalaxmibbnl,
Several good advice has been given, however comparing the content of the files you presented in your original post.
I can see that file1 is contained in file2 in such a way that if the two files are saved in different arrays, one can use splice to get the difference of the files like:
NOTE:use warnings; use strict; use Inline::Files; my @file1 = <DATA1>; # updated my @file2 = <DATA2>; # updated print $_ for splice @file2, $#file1 - 1, $#file2; __DATA1__ hi 1 hw r u hi 2 hw r u __DATA2__ hi 1 hw r u hi 2 hw r u hi 3 hw r u
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: difference between two files
by hdb (Monsignor) on Dec 19, 2013 at 14:30 UTC | |
by 2teez (Vicar) on Dec 19, 2013 at 14:48 UTC | |
|
Re^2: difference between two files
by kcott (Archbishop) on Dec 20, 2013 at 06:44 UTC |