File1 has three columns
Really? Your first line is:
Box of Joe CA12DE 12345
Why is that three columns, not five?

For the rest of the post, I will assume your columns are tab separated. (Maybe your data actually does contain tabs, but I cannot see that). Adjust accordingly if columns are defined differently. Either use a hash, or ~~ (untested):

chomp(my @file2 = <F2>); while (<F1>) { print unless @file2 ~~ (split /\t/)[1]; }
See also the questions "How can I tell whether a certain element is contained in a list or array?", "How can I remove duplicate elements from a list or array?", and "How do I compute the difference of two arrays? How do I compute the intersection of two arrays?" from the perlfaq. (man perlfaq4).

In reply to Re: comparing columns using regular expression by JavaFan
in thread comparing columns using regular expression by rocky13

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.