Algorithm-Nhash
view release on metacpan or search on metacpan
lib/Algorithm/Nhash.pm view on Meta::CPAN
use Carp;
use vars qw( @ISA @EXPORT_OK );
@ISA = qw( Exporter );
@EXPORT_OK = qw( nhash );
sub new {
my($class, @div) = @_;
return bless \@div, $class;
}
my @primes = qw( 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79
83 89 97 101 103 107 109 113);
sub nhash {
my($string, @div) = @_;
if (ref $string) { # called as a method
# $string is actually $self
( run in 0.726 second using v1.01-cache-2.11-cpan-de7293f3b23 )