Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: compare files by words

by sanPerl (Friar)
on May 31, 2007 at 10:38 UTC ( #618454=note: print w/replies, xml ) Need Help??


in reply to Re: compare files by words
in thread compare files by words

Zaxo is correct. I also use Algorithm::Diff to great extend. It is simple to use (once you understand the nested Array structure) and acts like Unix Diff.
To increase the speed, I suggest following method.
1) First compare lines exactly as string compare, if they are same then just move ahead to next sets of lines.
2) If the lines are NOT same then use Algorithm::Diff to understand difference.
Regards,
SanPerl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://618454]
help
Chatterbox?
[Discipulus]: hello there: Lady_Aleena for inspiration random browse my homenode.. ;=)
[Lady_Aleena]: Discipulus, Hello there. How are you?
[Lady_Aleena]: Good GUH Discipulus! Do you have enough links there?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-09-24 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (274 votes). Check out past polls.

    Notices?