develooper Front page | perl.beginners | Postings from March 2008

Re: parsing CSV files with control and extended ASCII characters

Thread Previous | Thread Next
From:
Gunnar Hjalmarsson
Date:
March 20, 2008 17:04
Subject:
Re: parsing CSV files with control and extended ASCII characters
David Newman wrote:
> I have some CSV input files that contain control and extended ASCII 
> characters,

<snip>

> The Text::CSV or Tie::Handle::CSV modules don't like these characters; 
> the snippets below both return errors when they get to one.

<snip>

> my $csv = Text::CSV->new();

In the docs for Text::CSV, that way of creating a new object is 
mentioned at the top of the SYNOPSIS section. The solution to your 
problem is stated right after that.

So, the usual recommendation:

"Read the docs for the module you are using."

is very much applicable. ;-)

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About