in reply to Re: Compare csv file fields?
in thread Compare csv file fields?

Yes, dragonchild this is indeed the usual way. That's why I said it's what I had considered. What I am looking to see is whether that is the only reasonable (or practical) way or whether there is another, better, way using some technique I did not know or using some module(s) I had not found.

Replies are listed 'Best First'.
Re3: Compare csv file fields?
by dragonchild (Archbishop) on Oct 07, 2003 at 17:47 UTC
    Parsing can be done using tilly's Text::xSV. Array::Compare might be useful in building the comparisons, as might Set::Scalar. Set::Scalar will allow you to generate two lists of UIDs and get the differences between the two. Then, you can do the same thing, but with the names from the acceptable UIDs.

    Personally, I think that all these modules are overkill for what is, essentially, a one-off. But, that's just me. (Do you really anticipate your *passwd files getting out of sync again?? That sounds like a bigger issue, to me ...)

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

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.