Digest::PerlHash - exposes the perl hash function to Perl programs
Version 0.01
use Digest::PerlHash qw/perlhash/;
my $hashvalue = perlhash "a string";
This module exposes the internal hashing function used by perl. You may prefer to use a different hash function from the Digest::* hierarchy because there is no guarantee that this function will return the same values between releases of perl.
perlhash - hash a string with perl's hash function
The perhash function is a named unary operator that takes a value and returns a 32-bit hash of the number as a Perl number. It uses perl's internal hashing algorithm to calcuate the hash, so the value may be different on different versions of Perl and even on different versions of perl compiled for different platforms.
There is no guarentee that this function will return the same value for the same string on different versions of perl or even on different versions of perl compiled for different platforms.
Digest::FNV, Digest::MD5, and Digest::SHA
Chas. J. Owens IV, <chas.owens at gmail.com>
This code is just an interface to the internal perl hash function, so all credit should go to the p5p team.
Copyright 2009 Chas. J. Owens IV, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.