Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: PerlApi: hashesby BrowserUk (Patriarch) |
on Aug 12, 2015 at 12:38 UTC ( [id://1138311]=note: print w/replies, xml ) | Need Help?? |
hello? https://metacpan.org/pod/Hash::Util#hash_value Nice find! But, it doesn't help :( I can use the PERL_HASH macro to obtain the hash value; but even if I set up an SV with the key for hv_exists_ent() to ignore; it complains: Use of uninitialized value in subroutine entry; for every iteration; and apparently does nothing?
Even if I could work out (why do I have to guess? Why isn't this stuff documented?) how to persuade hv_exists_ent() to use the pre-calculated hash value and ignore the SV it requires, setting that SV up costs more than recalculating the hash does -- which is what I was trying to avoid. What a dumb api. 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!
In Section
Seekers of Perl Wisdom
|
|