There are many file-based hashing modules, eg. BerkeleyDB::Hash, mod:/DB_File, DBM::Deep etc. But each have their own strengths and weaknesses depending upon how you need to use them.
Which, if any of them, is right for your application depends very much on:
- the nature of your data:
Are these simple key/value pairs or can the values themselves also be hashes or arrays?
- the nature and pattern of usage:
Is this a one-off thing? Ie. do you build the filed hashes once, run your processing, and then discard those files?
Or do they get reused many times?
- Will the filed hashes be accessed from a single process?
Or multiple concurrent processes?
- Are the processes accessing these hashes long running processes that open the files once and then do lots of processing?
Or are they short lived processes (eg. webserver sessions) that open the file, access one or two keys and then close them again?
If you give us a clearer picture of the nature of the nature of the data and the processes accessing it, we could probably give you far better suggestions for which modules or methods most likely fit your needs.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
In the absence of evidence, opinion is indistinguishable from prejudice.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.