- SEE ALSO
- COPYRIGHT & LICENSE
Diff::LibXDiff - Calculate a diff with LibXDiff (via XS)
use Diff::LibXDiff; my $string1 = <<_END_ apple banana cherry _END_ my $string2 = <<_END_ apple grape cherry lime _END_ my $diff = Diff::LibXDiff->diff( $string1, $string2 ) my $bin_diff = Diff::LibXDiff->bdiff( $bin_string1, $bin_string2 ) # $diff is ... @@ -1,3 +1,4 @@ apple -banana +grape cherry +lime
Diff::LibXDiff is a binding of LibXDiff (http://www.xmailserver.org/xdiff-lib.html) to Perl via XS
LibXDiff is the basis of the diff engine for git
Calculate the textual diff of $string1 and $string2 and return the result as a string
Calculate the patched string given an original string and a patch string
If the patching algorithm cannot place a hunk, it will return a second "rejected" result (if called in list context)
Calculate the binary diff of $bin1 and $bin2 and return result as a string
Calculate the patched binary given an original string and a patch string
<rkrimen at cpan.org>
Please report any bugs or feature requests to
bug-diff-libxdiff at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Diff-LibXDiff. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
Copyright 2009 Robert Krimen, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.