NAME
Text::Same::TextUI
DESCRIPTION
functions for outputting the results of a comparison made with Text::Same::compare();
SYNOPSIS
Usage : use Text::Same::TextUI; ... my $matchmap = compare(\%options, $file1, $file2); my @source1_non_matches = $matchmap->source1_non_matches; my @source2_non_matches = $matchmap->source2_non_matches; draw_non_matches(\%options, \@source1_non_matches, $matchmap->source1); draw_non_matches(\%options, \@source2_non_matches, $matchmap->source2);
METHODS
See below. Methods private to this module are prefixed by an underscore.
draw_non_match
Title : draw_non_match
Usage : draw_non_match(\%options, $source, $non_match);
Function: return a string suitable to output that is a representation of
a non matching region (range of chunk indexes) in a particular
source
Args : %options - settings to use
$source - the ChunkedSource that this non-match came from (for
looking up the actual chunks/lines for the range of
indexes)
$non_match - a Range object representing the non-matching chunks
draw_match
Title : draw_match
Usage : draw_match(\%options, $match);
Function: return a string suitable to output that is a representation of
a match between two sources
Args : %options - settings to use
$match - a Match object representing the matching chunks
AUTHOR
Kim Rutherford <kmr+same@xenu.org.uk>
COPYRIGHT & LICENSE
Copyright 2005,2006 Kim Rutherford. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DISCLAIMER
This module is provided "as is" without warranty of any kind. It may redistributed under the same conditions as Perl itself.