You could tie your datastructures to disk entities rather than trying to hold them all in memory, but that may be too lightweight for your ultimate goals. I don't know what you'll be doing with the data, and how long you need to hold onto it. But your problem may be a good candidate for a database.

With a relational database such as MySQL (or many others), you could create a table of user ID's and card-members, and another table of ID's and account numbers. In one table your id's will be primary (and unique) keys. In your second table the primary unique key will be account numbers (since presumably one account number cannot belong to more than one ID. Your ID's have a 1:1 relationship with individuals. Your ID's have a 1:M relationship (one to many) with account numbers. Your account numbers have a M:1 relationship (Many to one) with ID's. It would obviously make more sense if I could draw a relationship sketch.

The database solution would be interacted with using DBI, or Class::DBI, the latter of which would provide an object oriented model for your database.


Dave


In reply to Re: Help on file comparison by davido
in thread Help on file comparison by Danu

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.