Algorithm-RabinKarp
view release on metacpan or search on metacpan
lib/Algorithm/RabinKarp.pm view on Meta::CPAN
called winnowing (see the link at the end of this documentation.)
=head1 METHODS
=over
=item new($k, [FileHandle|Scalar|Coderef] )
Creates a new hash generator. If you provide a callback function, it must
return the next integer value in the stream. Additionally, you may
return the original position of the value in the stream (ie, you may have been
filtering characters out because they're redundant.)
=cut
sub new {
my $class = shift;
my $k = shift;
my $stream = $class->make_stream(shift);
my $rm_k = BASE;
( run in 1.177 second using v1.01-cache-2.11-cpan-1c8d708658b )