Skip Menu |

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

Report information
The Basics
Id: 47713
Status: rejected
Priority: 0/
Queue: Text-CSV

People
Owner: Nobody in particular
Requestors: lpritch [...] lanl.gov
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Can not pass optional attributes to a new Text::CSV object
Date: Wed, 8 Jul 2009 11:38:05 -0600 (MDT)
To: bug-Text-CSV [...] rt.cpan.org
From: "L. A. Pritchett-Sheats" <lpritch [...] lanl.gov>
Hello - I'm trying to use the Text::CSV package but I can not pass attributes to a new object. I've tried several ways to do this and either I can only set one option or none. Attached is a simple script that demonstrates my problem. Am I missing something? I'm using Text::CVS-1.12 distribution Perl version: 5.8.5 Machine: RedHat Linux box -- ---------------------------------------------------------------- Lori A. Pritchett-Sheats, PhD. |Snail Mail c/o Technical Staff Member |Los Alamos National Laboratory HPC-5, Integration Systems |PO Box 1663 Office: 505-665-6675 |MS T080 Fax: 505-665-6333 |Los Alamos, NM 87544

Message body is not shown because sender requested not to inline it.

You can know some causes of problems by error_diag. my %hash; $hash{'sep_char'} = ":"; $hash{'whitespace_allowed'} = 1; $hash{'always_quote'} = 1; my $csv = Text::CSV->new(\%hash); print Text::CSV->error_diag . ""; Not 'whitespace_allowed' but 'allow_whitespace'.