FileHash::Report - Generate reports from a FileHash.
use FileHash::Report; $obj = FileHash::Report->new; $obj = $obj->all ($filehash,$report,$fmtflg)
UNIVERSAL
Write simple reports. The output data is printed in search key/bucket order.
use FileHash::Content; use FileHash::Report; my $r = FileHash::Report->new; my $a = FileHash::Content->alloc; $a->initFromTree ("/root"); # print a list of all sets of files with the same md5sum and size. my $c = $a->identical; $r->all ($c,"myreport"); # Hash the data by name instead. my $b = FileHash::Name->alloc; $b->initFromTree ($a); # print a list of all sets of files with the same file name. $c = $b->identical; $r->all ($c,"myreport2"); # Print a list of all files found in a that are not in b $a = FileHash::Content->alloc; $b = FileHash::Content->alloc; $a->initFromTree ("/home/me/tree1"); $b->initFromTree ("/home/me/tree2"); $c = $a->andnot ($b); $r->all ($c,"myreport3"); # Print a list of all files found in a that are in one or the # other but not both. my $c = $a->xor ($b); $r->all ($c,"myreport3");
None.
Create instances of FileHash::Report.
Methods return self on success and undef on error unless stated otherwise.
A 'group of files' are files that have the same hash key.
$obj = $obj->all ($filehash,$report,$fmtflg)
Write a report of all files in $filehash to a file named $report. If the format flag exists and is true, linefeeds are printed between each group on output.
Lots.
See TODO.
FileHash::Base, Fault::Logger.
Dale Amon <amon@vnl.com>
3 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
You can't have =items (as at line 156) unless the first thing after the =over is an =item
=back doesn't take any parameters, but you said =back 4
To install FileHash::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FileHash::Base
CPAN shell
perl -MCPAN -e shell install FileHash::Base
For more information on module installation, please visit the detailed CPAN module installation guide.