Noah <[EMAIL PROTECTED]> asked:
> I need to a nice, sophisticate way to compare lines between 
> two files. 

Is the order of the lines relevant (i.e. source code, etc.)?

> I know that sorting can help in comparison process but still 
> one file might have additional lines between the lines that 
> are comparable - therefore throwing the diff process off.
> 
> Somebody suggested placing each line of the files in its own 
> hash key and then when the key matches the line of the second 
> file a match is known.
> 
> What is the best approach?

http://search.cpan.org/~tyemq/Algorithm-Diff-1.1902/lib/Algorithm/Diff.pm

"Compute `intelligent' differences between two files / lists"

HTH,
Thomas

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to