NAME
FileHash::Report - Generate reports from a FileHash.
|
SYNOPSIS
$obj = FileHash::Report->new;
$obj = $obj ->all ( $filehash , $report , $fmtflg )
|
Inheritance
Description
Write simple reports. The output data is printed in search key/bucket order.
|
Examples
my $r = FileHash::Report->new;
my $a = FileHash::Content->alloc;
$a ->initFromTree ( "/root" );
my $c = $a ->identical;
$r ->all ( $c , "myreport" );
my $b = FileHash::Name->alloc;
$b ->initFromTree ( $a );
$c = $b ->identical;
$r ->all ( $c , "myreport2" );
$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" );
my $c = $a ->xor ( $b );
$r ->all ( $c , "myreport3" );
|
Class Variables
Instance Variables
Class Methods
- $obj = FileHash::Report->new
-
Create instances of FileHash::Report.
Instance Methods
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.
Private Class Method
Private Instance Methods
Errors and Warnings
KNOWN BUGS
SEE ALSO
FileHash::Base, Fault::Logger.
|
AUTHOR
Dale Amon <amon@vnl.com>
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 148:
You forgot a '=back' before '=head1'
- Around line 152:
You can't have =items (as at line 156) unless the first thing after the =over is an =item
- Around line 162:
=back doesn't take any parameters, but you said =back 4