in reply to Re: PerlApi: hashes
in thread PerlApi: hashes

http://perldoc.perl.org/perlapi.html#HeHASH Returns the computed hash stored in the hash entry. U32 HeHASH(HE* he)

http://perl5.git.perl.org/perl.git?a=search&h=HEAD&st=grep&s=HeHASH

Replies are listed 'Best First'.
Re^3: PerlApi: hashes
by BrowserUk (Patriarch) on Aug 12, 2015 at 04:32 UTC
    HeHASH Returns the computed hash stored in the hash entry. U32 HeHASH(HE* he)

    Which is fine ... Er, actually, it is terminally stupid.

    In order to obtain the HE* for a key, I first need to look it up; and in order to lookup the key, I need to calculate the hash value!

    Reminds me of the old joke: Anti-thirst pills; take two in a glass of water.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!