Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Count array element in HASH of ARRAYS

by Laurent_R (Canon)
on Jul 20, 2015 at 16:40 UTC ( [id://1135464]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^4: Count array element in HASH of ARRAYS
by stm (Initiate) on Jul 20, 2015 at 17:46 UTC

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1135464]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found