Text::Same - Look for similarities between files or arrays


Text-Same documentation  | view source Contained in the Text-Same distribution.

Index


NAME

Top

Text::Same - Look for similarities between files or arrays

SYNOPSIS

Top

    use Text::Same;

    my $matchmap = compare "file_1", "file_2", { ignore_whitespace => 1 };
    my $matchmap = compare \@records1,  \@records2,  { ignore_simple => 3 };

  or use the "psame" command:

    psame -a file_1 file_2 | more

DESCRIPTION

Top

compare() compares two files or arrays of strings and returns a MatchMap object holding the results.

FUNCTIONS

Top

compare

 Title   : compare
 Usage   : $matchmap = compare($options, $file1, $file2)
        or
           $matchmap = compare($options, \@array1, \@array2)
        then:
           my @all_matches = $matchmap->all_matches;
 Function: return a MatchMap object holding matches and non-matches between the
           two given files or arrays of strings

SEE ALSO

Top

psame(1)

AUTHOR

Top

Kim Rutherford <kmr+same@xenu.org.uk>

COPYRIGHT & LICENSE

Top


Text-Same documentation  | view source Contained in the Text-Same distribution.