The summary documentation for Python's hash
function reads:
Type: builtin_function_or_method
String form: <built-in function hash>
Namespace: Python builtin
Docstring:
hash(object) -> integer
Return a hash value for the object. Two objects with the same value have
the same hash value. The reverse is not necessarily true, but likely.
(For example, the hash
function when applied to the documentation string above returns the integer 3071661466461282235.)
Is there an equivalent function for Perl?
EDIT: What I'm looking for does not need to return the same value as Python's hash
function for any argument.