Diff::LibXDiff - Calculate a diff with LibXDiff (via XS)
Version 0.05
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
Robert Krimen, <rkrimen at cpan.org>
<rkrimen at cpan.org>
http://www.xmailserver.org/xdiff-lib.html
Algorithm::Diff
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.
bug-diff-libxdiff at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Diff::LibXDiff
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Diff-LibXDiff
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Diff-LibXDiff
CPAN Ratings
http://cpanratings.perl.org/d/Diff-LibXDiff
Search CPAN
http://search.cpan.org/dist/Diff-LibXDiff/
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.
To install Diff::LibXDiff, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Diff::LibXDiff
CPAN shell
perl -MCPAN -e shell install Diff::LibXDiff
For more information on module installation, please visit the detailed CPAN module installation guide.