Which Perl module is recommended for maintaining insertion order with a hash?
The application I'm working on requires about 800-to-1,200 records (as hashes themselves) acquired from disparate sources to be stored in a hash (for fast searching by key) in a certain order (e.g., chronological or sequential).
I'm developing with ActivePerl 5.18.4 built for MSWin32-x86-multi-thread-64int although the code will also be running on CentOS 6 (64-bit) also.
I've already looked in Perl's /lib and /site/lib for a standard ("comes with" Perl) module (no joy; /site/lib is empty and /lib had Hash::Util, which does not offer what I need).
I also searched CPAN, but there were so many to choose from I thought it better to ask here for guidance.
I thank you for your time.
Searched for donut and crumpit. Found donate and stumbit instead.
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.