Array::Diff - Diff two arrays


NAME

Array::Diff - Diff two arrays

Back to Top


SYNOPSIS

    my @old = ( 'a', 'b', 'c' );
    my @new = ( 'b', 'c', 'd' );
    
    my $diff = Array::Diff->diff( \@old, \@new );
    
    $diff->count   # 2
    $diff->added   # [ 'd' ];
    $diff->deleted # [ 'a' ];

Back to Top


DESCRIPTION

This module do diff two arrays, and return added and deleted arrays. It's simple usage of Algorithm::Diff.

And if you need more complex array tools, check the Array::Compare manpage.

Back to Top


SEE ALSO

the Algorithm::Diff manpage

Back to Top


METHODS

diff

Back to Top


AUTHOR

Daisuke Murase <typester@cpan.org>

Back to Top


COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

Back to Top

 Array::Diff - Diff two arrays