On Mon, 19 May 2014 18:17:41 -0400, "Justin Powell via RT"
<bug-Text-CSV_XS@rt.cpan.org> wrote:
Show quoted text> My csv2xls seems to replace plain 0 in a tab separated file with a blank
> cell in the xls output. This seems to be due to the line:
>
> my $val = $row[$c] || "";
That should have been
my $val = $row[$c] // "";
but 5.6.x does not support defined-or and 5.8.x does not without a
patch. That line is in there since 0.41 (2008). Funny that it
only showed now. Changed to
my $val = defined $row[$c] ? $row[$c] : "";
Will be in next release. Thanks for the report.
--
H.Merijn Brand
http://tux.nl Perl Monger
http://amsterdam.pm.org/
using perl5.00307 .. 5.19 porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/