Array-Diff

 view release on metacpan or  search on metacpan

lib/Array/Diff.pm  view on Meta::CPAN

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
=over 4
 
=item new ()
 
Create a new C<Array::Diff> object.
 
=cut
 
sub new {
    my $self = shift->SUPER::new(@_);
 
    $self->{diff_class} ||= $INC{'Algorithm/Diff/XS.pm'} ? 'Algorithm::Diff::XS' : 'Algorithm::Diff';
 
    $self;
}
 
=item diff ( OLD, NEW )
 
Compute the differences between two arrays.  The results are stored
in the C<added>, C<deleted>, and C<count> properties that may be



( run in 0.246 second using v1.01-cache-2.11-cpan-8d75d55dd25 )