Hi! 

> -----Ursprüngliche Nachricht-----
> Von: Martijn van Oosterhout [mailto:klep...@svana.org] 
> Gesendet: Montag, 4. Mai 2009 15:30

> I've used the Algorithm::Diff module in the past with 
> success. It works on sequences of objects rather than just 
> text but it works well. That means you can diff on word or 
> character level at your choice, and even control what 
> sequences you consider "equal". That said, it doesn't have a 
> patch function but that should be fairly easy to make. You'll 
> need to define your own storage format for the diff though.
> 
> http://search.cpan.org/~nedkonz/Algorithm-Diff-1.15/lib/Algori
> thm/Diff.pm

Thank you - I have considered using Algorithm::Diff before, as Text::Diff seems 
to be based on that and one could, as you describe, create even more granular 
deltas than just line by line comparisons. The latter would however be fully 
sufficient for my needs, but I think I'll give Algorithm::Diff a closer look 
now :)

Kind regards

   Markus


Computec Media AG
Sitz der Gesellschaft und Registergericht: Fürth (HRB 8818)
Vorstandsmitglieder: Albrecht Hengstenberg (Vorsitzender) und Rainer Rosenbusch
Vorsitzender des Aufsichtsrates: Jürg Marquard 
Umsatzsteuer-Identifikationsnummer: DE 812 575 276



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to