|Keep It Simple, Stupid|
Data::Table - empty values - avoid warningsby GertMT (Friar)
|on Oct 24, 2007 at 16:01 UTC||Need Help??|
GertMT has asked for the
wisdom of the Perl Monks concerning the following question:
Working my way through some spreadsheet-like calculations with the use of Data::Table I have a problem with "empty cells". It's best described with the sample below. I did put an empty value in the 3 row of the 2nd column. In the extra created 3rd column I'm creating a row-total. If I run the code I get
Argument "" isn't numeric in addition (+) at...
I understand that, as there is no value in the 3 row of the second column.
Is there a way (except for leaving out use strict, warnings) to work around this? Or how can I make it numeric?