Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Algorithm::Diff Question

by aartist (Scribe)
on Jul 11, 2011 at 18:47 UTC ( #913749=perlquestion: print w/ replies, xml ) Need Help??
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.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://913749]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2015-07-28 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls