Dale Amon > FileHash-0.01-3 > FileHash::Name

Download:
FileHash-0.01-3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

 FileHash::Name - A Hash of file data keyed by the file's name.

SYNOPSIS ^

 use FileHash::Name;
 $obj = FileHash::Name->alloc;

Inheritance ^

 FileHash::Base

Description ^

This is a container for lists of file name entries. It modifies the definition of hash to to be the file name portion of the absolute path. For instance:

        /my/directory/foo.jpg

would be hashed as foo.jpg so that all instances of that name will be added to the same bucket.

Other than the hash key definition, it inherits its behavior from FileHash::Base.

Examples ^

 use FileHash::Content;
 my $a = FileHash::Name->alloc;
 $a->initFromTree ("/root");

Class Variables ^

 None.

Instance Variables ^

 None.

Class Methods ^

$obj = FileHash::Name->alloc

Allocate an empty instance of FileHash::Name.

Instance Methods ^

 See FileHash::Base.

Private Class Method ^

 None.

Private Instance Methods ^

$key = $obj->_genKey($entry)

Create an appropriate hash key. If needed values are undef, it will generate a name of "" for the key.

Errors and Warnings ^

 Lots.

KNOWN BUGS ^

 See TODO.

SEE ALSO ^

 FileHash::Base, FileHash::Entry.

AUTHOR ^

Dale Amon <amon@vnl.com>

syntax highlighting: