Beefy Boxes and Bandwidth Generously Provided by pair Networks
Joe more useful options  Re^3: Hash of Hashes from file  by
scorpio17 (Monsignor) on Apr 03, 2012 at 13:36 UTC
( #963247=note: print w/ replies, xml ) Need Help??  in reply to
Re^2: Hash of Hashes from file in thread Hash of Hashes from
file  Well, the problem is that with a hash, you can only have
one value for each key. If you need to associate multiple values
per key, then the solution is to store the values in an array,
and save the array reference in the hash. If you get to the
point where you have more data than you can fit into memory at
one time, then you need to look at using a database, like mysql.
Instead of pushing the data from each line of the file into your
hash, you would insert it into the database, then once all the
data is loaded you can query the database.  Comment on Re^3:
Hash of Hashes from file Re^4: Hash of Hashes from file by
cipher (Acolyte) on Apr 03, 2012 at 14:31 UTC     Yes hashes
have unique keys, Is it possible to