in reply to Need Help in Understanding Some Code - Map and Scalar Questions

I seem to recall having read recently that the 3/8 returned for this scalr'd hash means 3 or the 8 allocated buckets for this hash are used.

I also think I recall that you can pre allocate the number of buckets by something like

%hash = 100;

which I thought was pretty interesting. But sadly I don't remember the reference and am away for my books. I hope one of the more enlightened will correct any error.

Misha/Michael - Russian student, grognard, bemused observer of humanity and self professed programmer with delusions of relevance
  • Comment on Re: Need Help in Understanding Some Code - Map and Scalar Questions
  • Download Code

Replies are listed 'Best First'.
Re^2: Need Help in Understanding Some Code - Map and Scalar Questions
by ikegami (Patriarch) on Oct 30, 2010 at 19:16 UTC
Re^2: Need Help in Understanding Some Code - Map and Scalar Questions
by choroba (Cardinal) on Oct 30, 2010 at 19:15 UTC