in reply to Re: Modifying an existing Perl script to ask for input and output filenames and also remove double quotes for outfile file
in thread Modifying an existing Perl script to ask for input and output filenames and also remove double quotes for outfile file
Removing the use of Text::CSV is a major backward step! Consider what happens if a family of products have titles of the form:
Nugget Type Acme Widget, blue
Your code will now generate a badly formed csv file because the comma in the product title is seen as a field separator. With Text::CSV generating the output at least the file is generated correctly and the comma containing title is correctly quoted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Modifying an existing Perl script to ask for input and output filenames and also remove double quotes for outfile file
by Cristoforo (Curate) on Jan 31, 2018 at 01:08 UTC |