Have you expended any effort other than posting your request? What have you tried? Where's your code and how does it fail to satisfy your intent?

Lacking the above, we're not much inclined to provide specific help -- AKA, do your work for you. See On asking for help and -- at PerlMonks FAQ -- among other helpful explanations of the local value system.

But to get you started, this is a classic case where the Perl solution will closely parallel what you'd do if there were no computer and you had to do this job with two pieces of paper and a stubby pencil. So try writing down an exact outline of the steps you'd need to follow. Then think about unique (which, in Perl, tends to equate to 'think hashes'...and then, in Tutorials study up on hashes.


In reply to Re: Compare 2 CSV files by two different column and printout by ww
in thread Compare 2 CSV files by two different column and printout by nicopelle

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.