webchalkboard has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I've done a quick search and can't see any previous questions on this so I hope i'm not reasking old questions, but can anyone tell me how I can get Text::CSV_XS to use the tab (\t) as a delimiter? Define it as the separator character...?
This is my code for creating the object.
my $csv = Text::CSV_XS->new({ 'quote_char' => '', 'escape_char' => '', 'sep_char' => '\t', 'binary' => 1 });
But that doesnt seem to work... any ideas why? Do I need to escape it or something?
Thanks,
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::CSV_XS separator character tab
by mpeters (Chaplain) on May 27, 2005 at 14:20 UTC | |
|
Re: Text::CSV_XS separator character tab
by reasonablekeith (Deacon) on May 27, 2005 at 14:20 UTC | |
|
Re: Text::CSV_XS separator character tab
by ghenry (Vicar) on May 27, 2005 at 14:21 UTC | |
by Anonymous Monk on May 27, 2005 at 15:19 UTC | |
|
Re: Text::CSV_XS separator character tab
by dorward (Curate) on May 27, 2005 at 14:21 UTC | |
by Anonymous Monk on May 27, 2005 at 14:59 UTC | |
by thundergnat (Deacon) on May 27, 2005 at 18:53 UTC | |
by jZed (Prior) on May 27, 2005 at 16:20 UTC | |
|
Re: Text::CSV_XS separator character tab
by kwaping (Priest) on May 27, 2005 at 16:21 UTC | |
|
Re: HELP :: Text::CSV_XS separator character tab
by mlaro (Initiate) on Mar 03, 2012 at 17:11 UTC |