Hi y'all,

Some guidance and edification would be most appreciated.

I have two files, built the same way:

File1
File2
Col1    Col2    Col3    Col4                                   Col1    Col2
Col3    Col4
222       rrr        F;R      1111                                222
rrr     1;2;3    1111
D44      33       3;4;7;8   jjjj                                   D44
33    G;D       jjjj

...and so on.

My intention is to equate all columns against each other (Col1:Col1, etc...)
and print out the ones that differ.  My issue is with the third column.  As
you can see, it's a semicolon-delimited list, in a scalar variable, but the
column can have anywhere from 0 - 11 values; there's no reasonable
expectation of a certain number of values.

I'm fine with splitting the columns, then splitting the scalar variable that
makes up the third column, but from there, should I read that third column
via a loop into a hash?  If so, I don't clearly see what the key should be.
And if I do that, I imagine I'd compare the values using an "...exists..."
function, correct?

Or would it be better to sort the scalar third variable and just do a
scalar/scalar equality test?

Also, since I'm new to Perl and to posting here, please let me know if this
kind of post is detailed enough, or to verbose, of if the accepted
expectaion is just a snippet of code, etc.....

Many thanks in advance,

Paul



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to