Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Limit the size of a hash

by Tux (Monsignor)
on Sep 05, 2013 at 08:49 UTC ( #1052517=note: print w/ replies, xml ) Need Help??


in reply to Limit the size of a hash

If you need to analyze the data more often than once and speed is not the main issue, but size is, put the hash in a database. Use something like select from hashtable order by limit 10;. You can fill the database with e.g. Tie::Hash::DBD and have the best of both worlds.


Enjoy, Have FUN! H.Merijn


Comment on Re: Limit the size of a hash
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-08-29 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls