JayBonci is right -- something like mySQL is the best approach. But you say you were asked to "build an output file which combines all the information in all of the input files", so in that context, I think your idea would be hard to improve on, so long as you're careful to use an appropriate delimiter between the fields on each line (i.e. something that doesn't show up as data within any of the fields), and have a sensible way to deal with gaps -- a blank field in a given column for a given row.

Also, if the patterns in different columns tend to be "confusable" (e.g. a search pattern for one type of field happens to match values in another field), you'll need an enhanced "grep" process that can limit the search to a particular field.


In reply to Re: 4-way interchange mapping by graff
in thread 4-way interchange mapping by dsheroh

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.