in reply to matching an array

You might know what you're trying to do, but you're not explaining it very well. The more detail, the better the help.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re^2: matching an array
by Anonymous Monk on Jul 19, 2004 at 19:51 UTC
    just need to compare against column two in file2. Then print the whole line if column 2 mtaches file1.
      So, can line9 in file1 match the value on line3 in file2? What happens if the number of lines are different? You're not thinking of the various possibilities that a piece of code should really take into account.

      ------
      We are the carpenters and bricklayers of the Information Age.

      Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

      I shouldn't have to say this, but any code, unless otherwise stated, is untested

        yes, the order is not important, anything can match at any point. The number of lines will not be equal, all i need is to find the lines in file 2 which bear reference to those in file1.