Compare::Directory - Interface to compare directories.
Version 1.15
The one & only objective of the module is compare two directory contents. Currently it compare the following file types:
+-----------------------------------+ | File Type | Extension | +-----------------------------------+ | TEXT File | .txt | | COMMA Seperated File | .csv | | PDF File | .pdf | | XML File | .xml | | EXCEL File | .xls | +-----------------------------------+
The constructor expects the two directories name with complete path.
use strict; use warnings; use Compare::Directory; my $directory = Compare::Directory("./got-1", "./exp-1");
This is the public method that initiates the actual directory comparison. You simply call this method against the object. Returns 1 if directory comparison succeed otherwise returns 0.
use strict; use warnings; use Compare::Directory; my $directory = Compare::Directory("./got-1", "./exp-1"); $directory->cmp_directory();
Mohammad S Anwar, <mohammad.anwar@yahoo.com>
Please report any bugs or feature requests to bug-compare-directory at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Compare-Directory. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-compare-directory at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Compare::Directory
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Compare-Directory
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Compare-Directory
CPAN Ratings
http://cpanratings.perl.org/d/Compare-Directory
Search CPAN
http://search.cpan.org/dist/Compare-Directory/
Copyright 2010-2011 Mohammad S Anwar.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Compare::Directory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Compare::Directory
CPAN shell
perl -MCPAN -e shell install Compare::Directory
For more information on module installation, please visit the detailed CPAN module installation guide.