I just had an idea which I will now see if it can work technically, to whit, using the following somewhat arcane hybrid:
# pseudocode { hash-reference => { date => scalar, duration => scalar } }
where each hash-reference refers to what could also be an array of the remaining fields and their values (i.e. the unique combinations of the other data, with the field names only for convenience). - later...

Update: if it weren't for the fact that this allows duplicate logical keys in the upper hash ( hash references being to possibly non-unique hashes) it would have worked .... but this is the closest I got so far. I could of course encode the referenced hash into a hash key, e.g.

#pseudo-code { join( $;, %hash ) => { date => scalar, duration => scalar } }
But it just gets messier... for example the %hash has to be guaranteed to have its keys in a consistent order when it gets co-erced into a hash key and if that happened not to be a problem, it would still be poor practice to rely on it.

More update... Well since so far all I get is a down-vote and no further bright ideas, I'll just go with this inelegant solution and hack the embedded hash into being ordered by key.

see y'all in about six months when I next have a puzzler of this calibre. Sadly, I don't have time to participate properly in this site and my inclination is hardly bolstered under the circumstances.

-M

Free your mind


In reply to Re: pre-organisation of test results prior to conversion to CSV by Moron
in thread pre-organisation of test results prior to conversion to CSV by Moron

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.