Hello Monks
I am getting the following warning after a code refactoring where the optional divisor value passed via a parameter hashtable can be undef (because non-existent in the hashtable), even when trying to use a condition. For example
if ($divide_by){ $data_to_sum[0]->[$c] /= $divide_by; }
and
$data_to_sum[0]->[$c] /= $divide_by if $divide_by;result in the same warning. What is the correct way to do? Use a default value of 0 to make the test work?
In reply to Argument "" isn't numeric in division (/) by seki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |