in reply to Re: Best way to compare two files
in thread Best way to compare two files

Text::Diff (and it's model, GNU diff) won't selectively ignore things; the poster needs to compare, but ignore differences in date. Unfortunately, a simple diff won't accomplish this.

One approach would be to load columnar data (date in one column) and ignore the date column while comparing the rest of the data using something like Array::Compare.

radiantmatrix
require General::Disclaimer;
"Users are evil. All users are evil. Do not trust them. Perl specifically offers the -T switch because it knows users are evil." - japhy

Replies are listed 'Best First'.
Re^3: Best way to compare two files
by zentara (Cardinal) on Nov 02, 2004 at 12:57 UTC
    You are right, but I was thinking that the poster could do some post-processing of the diff output to discard the dates.

    I'm not really a human, but I play one on earth. flash japh