NAME
Data::DigestPath - the path generator as digest hash
SYNOPSIS
my $dp = Data::DigestPath->new;
my $path = $dp->make_path('foo'); # a/c/b/d/acbd18db4cc2f85cedef654fccc4a4d8
There are all options.
my $dp = Data::DigestPath->new(
salt => 'bar',
depth => 4,
delim => '/',
digest => sub { Digest::SHA1::sha1_hex(@_) },
);
warn $dp->make_path
DESCRIPTION
Data::DigestPath makes the path as digest hash.
METHODS
new(%options)
the object constructor
%options
salt => $string // ''
depth => $integer // 4
delim => $string // '/'
digest => $code_ref // sub { Digest::MD5::md5_hex(@_) }
make_path($key[, $length])
generate the path
REPOSITORY
Data::DigestPath is hosted on github <http://github.com/bayashi/Data-DigestPath>
Welcome your patches and issues :D
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.