hash#

Return perl’s hash of a string, formatted as 0xNNNNNNNN.

Synopsis#

my $h = B::hash("foo");    # e.g. "0x2ad53e4d"

Uses the same hash function the interpreter uses for hash keys, so the value is useful for reasoning about bucket placement and hash collisions in a live hash, not as a general-purpose checksum.