What Does Length(%HASH) Produce If You Have Thirty-seven Random Keys In A Newly Created Hash

What Does Length(%HASH) Produce If You Have Thirty-seven Random Keys In A Newly Created Hash


  • 29 Jan, 2012

    5length() is a built-in prototyped as sub length($), and a scalar prototype silently changes aggregates into radically different forms. The scalar sense of a hash is false (0) if it's empty, otherwise it's a string representing the fullness of the buckets, like "18/32" or "39/64". The length of that string is likely to be 5. Likewise, `length(@a)' would be 2 if there were 37 elements in @a.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.