Skip Menu |

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

Report information
The Basics
Id: 67165
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Text-CSV-Unicode

People
Owner: RMBarker [...] cpan.org
Requestors: dmn001 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.112
Fixed in: 0.113



When I use an array with 'undef' values in it it spits out this error message: use of uninitialized value $column in pattern match (m//) at C:/Perl512/site/lib/ Text/CSV/Base.pm line 166. use of uninitialized value $column in substitution (s///) at C:/Perl512/site/lib/ Text/CSV/Base.pm line 181. To solve I went through the array and replaced the undef's with ''. sample code to reproduce the problem: my @array; $array[1] = 'hello'; $array[3] = 'world'; if ($csv->combine(@array)) { my $string = $csv->string; print $string, "\n"; } else { my $err = $csv->error_input; print "combine() failed on argument: ", $err, "\n"; } However, this problem doesnt occur on the regular Text::CSV. Thanks, Dave
Thanks for the report. Fixed in version 0.113 which is heading for CPAN. The fix was to avoid accessing undef input values to combine