I'm trying to replicate a java hashing algorithm for a string in a Perl script.
Returns a hashcode for this string. The hashcode for a String object is computed as
is the ith character of the string, n is the length of the string, and ^ indicates exponentiation. (The hash value of the empty string is zero.)
Can anyone help me with this.