in reply to Re: Count array element in HASH of ARRAYS
in thread Count array element in HASH of ARRAYS

halfcountplus's method works. Thank you

  • Comment on Re^2: Count array element in HASH of ARRAYS

Replies are listed 'Best First'.
Re^3: Count array element in HASH of ARRAYS
by Laurent_R (Canon) on Jul 20, 2015 at 16:40 UTC
    Yes, fine if this gives you what you want, but, you will notice that this solution first needs to reorganize the data structure into another data structure (%containers) to make the counting easy.

    So I think that you should really not neglect stevieb's useful comment (in post Re: Count array element in HASH of ARRAYS) that it might be better to build in the first place a data structure making your requirement easier to implement. It may or may not be possible in your specific case, but if there is a way of building something like %containers in the first place, then you are in a much easier solution.

      Yes, I agree. Stevieb made a valid point. I will try that.