Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: using ref to hash of hash effectively

by kalee (Initiate)
on Dec 27, 2020 at 14:55 UTC ( #11125786=note: print w/replies, xml ) Need Help??


in reply to Re^2: using ref to hash of hash effectively
in thread using ref to hash of hash effectively

This is definitely the direction I was looking for! Both of these!

The problem is part of adventofcode dot com - 2015 day 21, so not a homework problem per say, and I've already solved it in another language. This is really me wanting to learn how to use arrays and hashes of stuff more effectively.

I really should have added that this is a Data Structure/Algorithm problem. In general, I want to learn how to structure the data so I can slice and dice it better. Leaving the data in two nested anonymous hashes isn't necessarily the goal. Rearranging the data to easily manipulate it would definitely be best!

I have been trying to figure out how I could use List::AllUtils to get groups of data out of this grouping or set of data. Though, changing the initial structure may be a better solution. I don't know what I don't know. That is kind of the open question. When you get a set of data like this, and please look at this fun and interesting problem, is there some sort of best practice for what you check for to decide what type of data structures to put the data into? That would truly be the magical part!

Replies are listed 'Best First'.
Re^4: using ref to hash of hash effectively
by eyepopslikeamosquito (Bishop) on Dec 27, 2020 at 21:28 UTC

    In general, I want to learn how to structure the data so I can slice and dice it better.
    Leaving the data in two nested anonymous hashes isn't necessarily the goal.
    Rearranging the data to easily manipulate it would definitely be best!
    Some famous programmers who agree with you

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-06-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (93 votes). Check out past polls.

    Notices?