in reply to Counting keys with defined or undefined elements in a hash

Well your hash had to be populated at some point. I suggest that you wrap the hash-population code in a small subroutine that increments a counter variable every time a defined deposit is made.
  • Comment on Re: Counting keys with defined or undefined elements in a hash