princepawn has asked for the wisdom of the Perl Monks concerning the following question:
This module is based upon a working definition of CSV format which may not be the most general. Allowable characters within a CSV field include 0x09 (tab) and the inclusive range of 0x20 (space) through 0x7E (tilde).Now let's look at how this part of the spec is implemented:
# ~LINE 308 } elsif ($$line_ref =~ /^[\t\040-\176]/) { # a tab, space, or printable... + $$piece_ref .= substr($$line_ref, 0 ,1); substr($$line_ref, 0, 1) = '';
The first thing I notice is that he says 0x20 (space) through 0x7E (tilde). but the code has /^[\t\040-\176]/.
Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Altering Text::CSV to handle Unicode data
by Ovid (Cardinal) on Jul 15, 2003 at 18:25 UTC | |
|
Re: Altering Text::CSV to handle Unicode data
by halley (Prior) on Jul 15, 2003 at 18:44 UTC | |
|
Re: Altering Text::CSV to handle Unicode data
by bobn (Chaplain) on Jul 15, 2003 at 18:05 UTC |