local-perl-Algorithm-Diff-1.1903-1.noarch.rpm


Advertisement

Description

local-perl-Algorithm-Diff - Algorithm-Diff - Compute `intelligent' differences between two files / lists

Property Value
Distribution CentOS 6
Repository End Point x86_64
Package filename local-perl-Algorithm-Diff-1.1903-1.noarch.rpm
Package name local-perl-Algorithm-Diff
Package version 1.1903
Package release 1
Package architecture noarch
Package type rpm
Category Applications/CPAN
Homepage http://www.cpan.org
License Artistic
Maintainer -
Download size 36.51 KB
Installed size 140.70 KB
require Algorithm::Diff;
my $diff = Algorithm::Diff->new( \@seq1, \@seq2 );
$diff->Base( 1 );   # Return line numbers, not indices
while(  $diff->Next()  ) {
next   if  $diff->Same();
my $sep = '';
if(  ! $diff->Items(2)  ) {
printf "%d,%dd%d\n",
$diff->Get(qw( Min1 Max1 Max2 ));
} elsif(  ! $diff->Items(1)  ) {
printf "%da%d,%d\n",
$diff->Get(qw( Max1 Min2 Max2 ));
} else {
$sep = "---\n";
printf "%d,%dc%d,%d\n",
$diff->Get(qw( Min1 Max1 Min2 Max2 ));
}
print "< $_"   for  $diff->Items(1);
print $sep;
print "> $_"   for  $diff->Items(2);
}
use Algorithm::Diff qw(
LCS LCS_length LCSidx
diff sdiff compact_diff
traverse_sequences traverse_balanced );
@lcs    = LCS( \@seq1, \@seq2 );
$lcsref = LCS( \@seq1, \@seq2 );
$count  = LCS_length( \@seq1, \@seq2 );
( $seq1idxref, $seq2idxref ) = LCSidx( \@seq1, \@seq2 );
@diffs  = diff( \@seq1, \@seq2 );
@sdiffs = sdiff( \@seq1, \@seq2 );
@cdiffs = compact_diff( \@seq1, \@seq2 );
traverse_sequences(
\@seq1,
\@seq2,
{   MATCH     => \&callback1,
DISCARD_A => \&callback2,
DISCARD_B => \&callback3,
},
\&key_generator,
@extra_args,
);
traverse_balanced(
\@seq1,
\@seq2,
{   MATCH     => \&callback1,
DISCARD_A => \&callback2,
DISCARD_B => \&callback3,
CHANGE    => \&callback4,
},
\&key_generator,
@extra_args,
);

Alternatives

Package Version Architecture Repository
local-perl-Algorithm-Diff-1.1903-1.noarch.rpm 1.1903 noarch End Point
local-perl-Algorithm-Diff - - -

Requires

Name Value
local-perl(Exporter) -
local-perl(integer) -
local-perl(strict) -
local-perl(vars) -

Provides

Name Value
local-perl(Algorithm::Diff) = 1.19
local-perl(Algorithm::Diff::_impl) -
local-perl-Algorithm-Diff = 1.1903-1

Download

Type URL
Mirror packages.endpoint.com
Binary Package local-perl-Algorithm-Diff-1.1903-1.noarch.rpm
Source Package local-perl-Algorithm-Diff-1.1903-1.src.rpm

Install Howto

  1. Download latest endpoint-release rpm from https://packages.endpoint.com/rhel/6/os/x86_64/
  2. Install endpoint-release rpm:
    # rpm -Uvh endpoint-release*rpm
  3. Install local-perl-Algorithm-Diff rpm package:
    # yum install local-perl-Algorithm-Diff

Files

Path
/usr/local/lib/perl5/perl_site/5.14.1/Algorithm/Diff.pm
/usr/local/lib/perl5/perl_site/5.14.1/Algorithm/DiffOld.pm
/usr/local/lib/perl5/perl_site/5.14.1/Algorithm/cdiff.pl
/usr/local/lib/perl5/perl_site/5.14.1/Algorithm/diff.pl
/usr/local/lib/perl5/perl_site/5.14.1/Algorithm/diffnew.pl
/usr/local/lib/perl5/perl_site/5.14.1/Algorithm/htmldiff.pl
/usr/local/share/man/man3/Algorithm::Diff.3pm
/usr/local/share/man/man3/Algorithm::DiffOld.3pm
/usr/share/doc/local-perl-Algorithm-Diff-1.1903/Changes
/usr/share/doc/local-perl-Algorithm-Diff-1.1903/README

Changelog

2015-10-12 - rpmbuildlcl@rhel6-build64.endpoint.com
- Initial build.

See Also

Package Description
local-perl-Any-Moose-0.18-1.noarch.rpm Any-Moose - use Moose or Mouse modules
local-perl-AppConfig-1.66-1.noarch.rpm AppConfig - AppConfig is a bundle of Perl5 modules for reading configuration files and parsing command line arguments
local-perl-Archive-Extract-0.48-162.ep.noarch.rpm Generic archive extracting mechanism
local-perl-Archive-Tar-1.76-162.ep.noarch.rpm A module for Perl manipulation of .tar files
local-perl-Archive-Zip-1.31_02-1.noarch.rpm Archive-Zip - Provide an interface to ZIP archive files
local-perl-Array-Compare-2.01-1.noarch.rpm Array-Compare - Perl module
local-perl-Authen-Captcha-1.023-1.noarch.rpm Authen-Captcha - Perl extension for creating captcha's to verify the human element in transactions
local-perl-Authen-Htpasswd-0.161-1.noarch.rpm Authen-Htpasswd - Interface to read and modify Apache .htpasswd files
local-perl-Authen-SASL-2.15-1.noarch.rpm Authen-SASL - SASL Authentication framework
local-perl-B-Hooks-EndOfScope-0.09-1.noarch.rpm B-Hooks-EndOfScope - Execute code after a scope finished compilation
local-perl-Barcode-Code128-2.01-1.noarch.rpm Barcode-Code128 - Generate CODE 128 bar codes
local-perl-Bit-Vector-7.2-1.x86_64.rpm Bit-Vector - Perl module
local-perl-Bundle-InterchangeKitchenSink-1.06-2.noarch.rpm Bundle-InterchangeKitchenSink - A bundle of most all the modules nice to have for Interchange. A lot of stuff
local-perl-Bundle-LWP-5.810-2.noarch.rpm Bundle-LWP - install all libwww-perl related modules
local-perl-Business-CreditCard-0.31-1.noarch.rpm Business-CreditCard - Validate/generate credit card checksums/names
Advertisement
Advertisement