I'm afraid your description is a bit too tangled for me to follow, not sure which of the various csv files is needed and how the sqlite database fits in. It seems to me that your best bet is to treat *all* of the data as a database. Use DBD::CSV to read the text files and write the pipe-delimited files. You can even do joins of the two input text files so you aren't reading them in tandem. This method would allow you to define the tables and the relations between them, even if some of the tables consist of only a single field. If you can come back with a schema - a list of the columns in the various data sources and the relations between them, I (and probably others) can help get that into a form that will have DBD::CSV and DBD::SQLite talking to each other.

In reply to Re: Log file manipulation and SQLite by jZed
in thread Log file manipulation and SQLite by jeff061

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.