Thanks for your thoughts and the long write up.
As noted in my earlier post, I had considered getting the display data directly from the database table. For your reference, the timestamp will be ok in seconds

sudo-code #ie: #Read and save serial number to database. #Table: | prefix | number | stamp | (index the stamp) #Now build for the display... "SELECT DISTINCT number FROM table ORDER BY stamp LIMIT 20" etc; ## Now get prefixes associated with those numbers. ## Remember the other serial numbers (prefixes) may be received at any + time in the past. for (each number) { "SELECT prefix FROM table WHERE number=$_" fetch() 1 to 4 elements per number { ## build, in a string, array, or hash for display "number XX XX XX XX" } }

And that looks like a nightmare. :)

update
Tanktalus, don't spend any more time on this. There's more to the script than I've outlined, like some of this runs in a forked child process and data is LWP'd to another script, etc.

Your earlier solutions will serve my needs and I sincerely thank you.


In reply to Re^5: Populate and sort AoA by nedals
in thread Populate and sort AoA by nedals

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.