another newbie here ... Is hashes the way to go?

It's certainly the way to start and the approaches given by hv and kcott will get you well along that path. As someone new to Perl, the use of hashes is fundamental to so much that the language can do that becoming familiar with them would be very beneficial to you in both the short and long term.

The only problem you might hit for this particular task is if the amount of data to be stored is comparable or greater than the amount of RAM you have available. If that happens then you will see the performance drop off a cliff edge and other tactics or strategies may be required. But only worry about that if/when you hit that limit.

Do consider signing up for an account here. It is free and will make it easier for you to revisit your old posts and for the rest of us to recognise you instead of being lost among all our other anonymous brethren. You've written a very good post for first timer and it would be good to see more of the same.


🦛


In reply to Re: How to make unique entries by hippo
in thread How to make unique entries by Anonymous Monk

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.