The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Compare::Directory - Interface to compare directories.

VERSION

Version 1.15

DESCRIPTION

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     |
    +-----------------------------------+

CONSTRUCTOR

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");

METHOD

cmp_directory()

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();

AUTHOR

Mohammad S Anwar, <mohammad.anwar@yahoo.com>

BUGS

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.

SEE ALSO

File::DirCompare
File::Dircmp

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Compare::Directory

You can also look for information at:

LICENSE AND COPYRIGHT

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.

DISCLAIMER

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.