http://www.perlmonks.org?node_id=913749

aartist has asked for the wisdom of the Perl Monks concerning the following question:

I am using Algorithm::Diff to compare two text files. The order of the data blocks in the text files have been messed up. Depend upon which sequence I specify first, the traverse_sequences generates different results. Is there a way to get the intersection of these results? That will show true difference between files.

Thanks.

Replies are listed 'Best First'.
Re: Algorithm::Diff Question
by ikegami (Patriarch) on Jul 11, 2011 at 19:40 UTC
    Can you sort the files before comparing them?
      That works as expected. Thank you.