in reply to I want to compare 2 CSV files and print the difference in a text file

Or show us what you tried so far, so we can comment on your code.


Enjoy, Have FUN! H.Merijn
  • Comment on Re: I want to compare 2 CSV files and print the difference in a text file

Replies are listed 'Best First'.
Re^2: I want to compare 2 CSV files and print the difference in a text file
by 7stud (Deacon) on Feb 12, 2018 at 14:00 UTC
    You don't have to install Text::CSV to read a whole line from a file, which is all that is required.
      1. I never referred to Text::CSV, but to Text::CSV_XS. Don't change the context.
      2. Both examples posted had three lines (which with my basic math is more than one).
      3. CSV should never be read as-is. It will work on the first example, but will fail when embedded newlines, quotation and escapes come into play.
      4. I offered the csvdiff tool, which depends on Text::CSV_XS.
      5. The op asked for processing (diff), not just reading (parsing) a single line.

      Enjoy, Have FUN! H.Merijn