Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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 ( [id://1208995]=note: print w/replies, xml ) Need Help??


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

You don't have to install Text::CSV to read a whole line from a file, which is all that is required.
  • Comment on Re^2: I want to compare 2 CSV files and print the difference in a text file

Replies are listed 'Best First'.
Re^3: I want to compare 2 CSV files and print the difference in a text file
by Tux (Canon) on Feb 12, 2018 at 14:23 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1208995]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-18 23:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found