Subject: | 0 is not being treated as a valid value |
use strict;
use warnings;
use Text::ASCIITable;
my $t = Text::ASCIITable::->new;
$t->setCols('Nickname','Name');
$t->addRow('Foo','Bar');
$t->addRow('Zero','0');
$t->addRow('-','-');
$t->addRow('Zero',0);
$t->addRow('-','-');
$t->addRow('Zero','0E0');
$t->addRow('-','-');
$t->addRow('Zero','0 ');
die "$/$/$t$/";
__END__
yields
.=---------+-----=.
| Nickname | Name |
|=---------+-----=|
| Foo | Bar |
| Zero | |
| - | - |
| Zero | |
| - | - |
| Zero | 0E0 |
| - | - |
| Zero | 0 |
'=---------+-----='
but should yield
.=---------+-----=.
| Nickname | Name |
|=---------+-----=|
| Foo | Bar |
| Zero | 0 |
| - | - |
| Zero | 0 |
| - | - |
| Zero | 0E0 |
| - | - |
| Zero | 0 |
'=---------+-----='