Moron:

This isn't an answer to your question, just an observation.

Looking at the code you have, you might make things a bit simpler if you let the database do more of the work. All databases (that I'm familiar with) allow you to do a left join, so you can return all your data in one SQL statement, rather than two. Something like:

SELECT L.key, L.blah1, R.key, R.blah2 FROM FirstTable AS L LEFT JOIN SecondTable AS R ON R.key = L.key
Then you can read the result, placing all items in %abs, and also placing them into %ilb if the R.key column happens to be null--or more simply, not equal to L.key.

...roboticus


In reply to Re: putting the return value from defined for one hash as the value in another by roboticus
in thread putting the return value from defined for one hash as the value in another 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.