in reply to Adding data to hashes & comparing
Some quick observations about your code so far:
As to your question about data structures and comparisons , perhaps you could be more specific about how you want to compare fields - are you counting the GET/POST requests for each user agent? each IP? each data? some combination of the three?
Your plans will affect your choice of data structure. For instance, if you want to count all HTTP requests with the same user agent, you will need an HoAoH hash where each key is a user agent and each value is an array containing all of request hashes sharing the same user agent.
You can build this hash most efficiently while you are reading in the data. Depending on your goals, you may be able to eliminate the AoH hash entirely and rely solely on the HoAoH hashes.
Best, beth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding data to hashes & comparing
by hallikpapa (Scribe) on Mar 30, 2009 at 20:47 UTC | |
by ELISHEVA (Prior) on Mar 30, 2009 at 21:18 UTC | |
by hallikpapa (Scribe) on Mar 31, 2009 at 14:36 UTC | |
by ELISHEVA (Prior) on Mar 31, 2009 at 17:56 UTC | |
by moritz (Cardinal) on Mar 30, 2009 at 21:10 UTC |