Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Excel::Writer::XLSX::add_table omits zeros

by choroba (Canon)
on Jun 12, 2013 at 13:45 UTC ( #1038471=note: print w/ replies, xml ) Need Help??

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( .... }
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re: Excel::Writer::XLSX::add_table omits zeros
Download Code
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038471]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2015-03-06 08:23 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (159 votes), past polls