Algorithm::DiffOld 1.15
Sponsored Links
Algorithm::DiffOld 1.15 Ranking & Summary
File size:
0.023 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
814
Date added:
2007-08-01
Publisher:
Algorithm::DiffOld team
Algorithm::DiffOld 1.15 description
Algorithm::DiffOld is a Perl module to compute `intelligent differences between two files / lists but use the old (<=0.59) interface.
NOTE
This has been provided as part of the Algorithm::Diff package by Ned Konz. This particular module is ONLY for people who HAVE to have the old interface, which uses a comparison function rather than a key generating function.
Because each of the lines in one array have to be compared with each of the lines in the other array, this does M*N comparisions. This can be very slow. I clocked it at taking 18 times as long as the stock version of Algorithm::Diff for a 4000-line file. It will get worse quadratically as array sizes increase.
SYNOPSIS
use Algorithm::DiffOld qw(diff LCS traverse_sequences);
@lcs = LCS( @seq1, @seq2, $comparison_function );
$lcsref = LCS( @seq1, @seq2, $comparison_function );
@diffs = diff( @seq1, @seq2, $comparison_function );
traverse_sequences( @seq1, @seq2,
{ MATCH => $callback,
DISCARD_A => $callback,
DISCARD_B => $callback,
},
$comparison_function );
COMPARISON FUNCTIONS
Each of the main routines should be passed a comparison function. If you arent passing one in, use Algorithm::Diff instead.
These functions should return a true value when two items should compare as equal.
For instance,
@lcs = LCS( @seq1, @seq2, sub { my ($a, $b) = @_; $a eq $b } );
but if that is all youre doing with your comparison function, just use Algorithm::Diff and let it do this (this is its default).
Or:
sub someFunkyComparisonFunction
{
my ($a, $b) = @_;
$a =~ m{$b};
}
@diffs = diff( @lines, @patterns, &someFunkyComparisonFunction );
which would allow you to diff an array @lines which consists of text lines with an array @patterns which consists of regular expressions.
This is actually the reason I wrote this version -- there is no way to do this with a key generation function as in the stock Algorithm::Diff.
NOTE
This has been provided as part of the Algorithm::Diff package by Ned Konz. This particular module is ONLY for people who HAVE to have the old interface, which uses a comparison function rather than a key generating function.
Because each of the lines in one array have to be compared with each of the lines in the other array, this does M*N comparisions. This can be very slow. I clocked it at taking 18 times as long as the stock version of Algorithm::Diff for a 4000-line file. It will get worse quadratically as array sizes increase.
SYNOPSIS
use Algorithm::DiffOld qw(diff LCS traverse_sequences);
@lcs = LCS( @seq1, @seq2, $comparison_function );
$lcsref = LCS( @seq1, @seq2, $comparison_function );
@diffs = diff( @seq1, @seq2, $comparison_function );
traverse_sequences( @seq1, @seq2,
{ MATCH => $callback,
DISCARD_A => $callback,
DISCARD_B => $callback,
},
$comparison_function );
COMPARISON FUNCTIONS
Each of the main routines should be passed a comparison function. If you arent passing one in, use Algorithm::Diff instead.
These functions should return a true value when two items should compare as equal.
For instance,
@lcs = LCS( @seq1, @seq2, sub { my ($a, $b) = @_; $a eq $b } );
but if that is all youre doing with your comparison function, just use Algorithm::Diff and let it do this (this is its default).
Or:
sub someFunkyComparisonFunction
{
my ($a, $b) = @_;
$a =~ m{$b};
}
@diffs = diff( @lines, @patterns, &someFunkyComparisonFunction );
which would allow you to diff an array @lines which consists of text lines with an array @patterns which consists of regular expressions.
This is actually the reason I wrote this version -- there is no way to do this with a key generation function as in the stock Algorithm::Diff.
Algorithm::DiffOld 1.15 Screenshot
Algorithm::DiffOld 1.15 Keywords
DiffOld
DiffOld 1.15
to compute
Perl module
Differences Between
Between Two
b
lists
module
Perl
intelligent
old
Algorithm::DiffOld
AlgorithmDiffOld
Algorithm::DiffOld 1.15
Libraries
Bookmark Algorithm::DiffOld 1.15
Algorithm::DiffOld 1.15 Copyright
WareSeeker periodically updates pricing and software information of Algorithm::DiffOld 1.15 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Algorithm::DiffOld 1.15 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
perl modules
install perl module
installing perl module
xml parser perl module
atrpms perl module helper
perl module tutorial
net ssleay perl module
perl module install
differences between american
differences between republicans and democrats
distance between two cities
ipod to computer
intelligentsia coffee
lists of songs
module master
differences between boys and girls
perl how to remove a module
between two worlds
Related Software
Sys::PortIO is a Perl module to perform direct port I/O from Perl. Free Download
AudioCD is a Perl module for basic Audio CD control. Free Download
CGI::Builder::Magic Perl module contains CGI::Builder and Template::Magic integration. Free Download
ExtUtils::Embed is a Perl module with utilities for embedding Perl in C/C++ applications. Free Download
DBD::Oracle is a Perl module with Oracle database driver for the DBI module. Free Download
Blatte::HTML is a Perl module that contains tools for generating HTML with Blatte. Free Download
Net::AudioScrobbler is a Perl module that provides an interface to AudioScrobbler. Free Download
App::Modular is a Perl module with modularization framework for perl programs. Free Download
Latest Software
Popular Software
Favourite Software