An easy, but really ugly way to compare the two files is to change your compare to if ( "@lines" eq "@lines1" ) { ... You can then do away with the "chomp()" loops.
Algorithm::Diff is another approach you might consider.
In reply to Re: Compare the content of two files
by dws
in thread Compare the content of two files
by parthu_r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |