Daisuke Murase > Array-Diff-0.02 > Array::Diff

Download:
Array-Diff-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View Bugs
Report a bug
Module Version: 0.02   Source   Latest Release: Array-Diff-0.05002

NAME ^

Array::Diff - Diff two arrays

SYNOPSIS ^

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

DESCRIPTION ^

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

SEE ALSO ^

Algorithm::Diff

METHODS ^

diff

AUTHOR ^

Daisuke Murase <typester@cpan.org>

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.