LRpt::CSVDiff - A module for comparing 2 sets of csv files
lcsvdiff.pl --all --keys_file=rkeys.txt --chunk_size=num before_dir after_dir
This module is a part of LRpt (LReport) library. It is used to compare 2 sets of csv files and report found differences. You should not use LRpt::CSVDiff module directly in your code. Instead you should use lcsvdiff.pl tool, which is a simple wrapper around the module. lcsvdiff.pl looks like this:
LRpt
LRpt::CSVDiff
use LRpt::CSVDiff; use strict; diff( @ARGV );
If set, not only differences are reported, but all rows from both rowsets.
Row key defined in command line as one string. Don't use it. I will probably get read of this switch in future
Name of the file containing row keys definitions
Number of rows retrieved in one chunk. If not defined - default chunking size is used. If equal to zero, than no chunking is used (all rows are loaded to memory
Prints help screen.
A file name or a directory containing files with before state.
A file name or a directory containing files with after state.
In this sections you will find a more or less complete listing of all methods provided by the package.
diff
diff( @ARGV );
Main function. @ARGV is processed by standard Getopt::Long module. Switches have the following meaning (see SYNOPSIS.
A file name of a directory containing files with after state.
compare
compare( $st1_file, $st2_file );
Compares 2 files. If one or two of given filenames are actually directory names then diff behavior is mimiced.
compare_two_files
compare_two_files( $file1, $file2 );
Performs row/column oriented comparison between 2 files
print_usage
print_usage();
Prints usage text.
The project is maintained on Source Forge http://lreport.sourceforge.net. You can find there links to some helpful documentation like tutorial.
Piotr Kaluski <pkaluski@piotrkaluski.com>
Copyright (c) 2004-2006 Piotr Kaluski. Poland. All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
To install LRpt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LRpt
CPAN shell
perl -MCPAN -e shell install LRpt
For more information on module installation, please visit the detailed CPAN module installation guide.