in reply to Re: How to define and deref hash of hash of hash
in thread How to define and deref hash of hash of hash

Good comments from 1nickt++. Also good replies from kcott and others.

If the OP's main goal is just to learn about complicated hash data structures, then I think there is lot's of info in this thread.

If the OP's goal is to implement some sort of DB application that will "live" and be maintained over time, I think the advice will differ significantly. One point is how add/modify/delete records easily without modifying the actual Perl code. Another consideration might be the difficulty or ease of adding new sections of parameters to existing records. Maybe add NHL for example.

Some sort of YAML or .ini file for data input is certainly a possibility.There are others.

What sort of queries do you want to do on this DB that would be useful in an application sense? I have currently no idea. Teams and Restaurants don't seem to have anything to do with each other unless there is some linkage to which ones are near which parks?

Rather than some complicated HoHoHoH structure, this sounds to me more like an SQlite DB would yield far more flexibly in querying the DB. Just a thought. The combination of a simple DB DQL query coupled with some extra PERL processing can be very powerful.

  • Comment on Re^2: How to define and deref hash of hash of hash