Ok Monks, I'm finished beating my head against the desk and I need some guidance. I have one main file(main.csv), and I have a few other files(20090101.csv, 20090102.csv, and 20090103.csv). The main file looks something like this:

Number:
10 4 8
The other files look something like this:
4, 523 10, 999 8, 0

So I guess step one I want to match the main.csv to the first file say 20090101.csv, and where the first number matches I want to add the second number to the main file. That part is easy, however when I compare the updated main file with the next file that's where my inexperience shows.

So long story short I want the main file to look something like:
Number,20090101,20090102 ,20090103 10 ,999 ,"file 2's numbers","file 3's numbers" 4 ,523 ,"file 2's numbers","file 3's numbers" 8 ,0 ,"file 2's numbers","file 3's numbers"
All I'm really looking for is guidance but if you have something written already I will gladly take a look.

In reply to How to go about this? by meredib

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.