http://www.perlmonks.org?node_id=1038471


in reply to Excel::Writer::XLSX::add_table omits zeros

If $token is 0, the condition is false. You should rather test its definedness:
if (defined $token) { $self->write( .... }
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Excel::Writer::XLSX::add_table omits zeros
by david2008 (Scribe) on Jun 12, 2013 at 13:56 UTC
    Thanks. I will open a defect for the module maintainer

      It is not a defect. As choroba says, you yourself skip setting the cell to zero if the entry ($token) is zero.

      UPDATE: Apologies. I had not realized that you were quoting module code, rather than your own. Will read the post more carefully next time.