Skip Menu |

This queue is for tickets about the Text-RecordParser CPAN distribution.

Report information
The Basics
Id: 40664
Status: resolved
Worked: 2 min
Priority: 0/
Queue: Text-RecordParser

People
Owner: kclark [...] cpan.org
Requestors: useEvil [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: v1.2.1
Fixed in: (no value)



Subject: Does not handle quotes in CSV files
Files with fields that are quoted retain the quotes. The quotes should be removed. I have files created by Text::CSV, with the option 'always_quote'. When Text::RecordParser parses the file, the quotes are retained with the value.
You can do this with field_filter. I've added this to the "tablify" script: if ( $strip_quotes ) { $p->field_filter( sub { s/^["']//; s/["']$//; $_ } ); } Do you feel this rises to the level of needing a helper method to do this automatically? ky