whartman has asked for the wisdom of the Perl Monks concerning the following question:

Perl uses an internal hash function to hash a string of any length into an integer in its implementaion of hash structures. How do I call this hash function directly, in standard portable perl, as a kind of message digest function? Alternatively, does anyone have the perl code to implement the function in perl? Note that I am not asking how to use perl hash structures, but rather how to accomplish the perl "hash" (in the original computer science meaning of the term) of a string into an integer. Thanks!