Digest::PerlHash

Digest::PerlHash - exposes the perl hash function to Perl programs


VERSION

Version 0.01


SYNOPSIS

    use Digest::PerlHash qw/perlhash/;
    
    my $hashvalue = perlhash "a string";


DESCRIPTION

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.


EXPORT

perlhash - hash a string with perl's hash function


FUNCTIONS

perlhash

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.


BUGS

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.


SEE ALSO

Digest::FNV, Digest::MD5, and Digest::SHA


AUTHOR

Chas. J. Owens IV, <chas.owens at gmail.com>


ACKNOWLEDGEMENTS

This code is just an interface to the internal perl hash function, so all credit should go to the p5p team.


COPYRIGHT & LICENSE

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.