in reply to Re: Perl: How to compare two files
in thread Perl: How to compare two files

I tried with text::diff, file::compare, list::compare and hash of array concept and module but the output I want in error.txt is just the position of mismatch like line no., The logic might be check mismatch line by line and whatever the mismatch found just grab that line no. of file 2 and print in the error file one by one.

I really appreciate that you help me

but can you do some modification

thanks a lot

Replies are listed 'Best First'.
Re^3: Perl: How to compare two files
by choroba (Cardinal) on Aug 26, 2014 at 09:43 UTC
    See also Algorithm::Diff, it makes it possible to define what to do on a match or mismatch.

    but can you do some modification
    This is not a code writing service. What about you making some modifications?
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ