Subject: | Unable to set forcearray to zero |
On line 509 in sub new, the following line is used to pick up the
forcearray option:
$self->{forcearray} = $params{forcearray} || 1;
I tried to set the forcearray option to be 0. I found the above
statement will always set it to one since 0 || 1 is 1.
Perhaps
$self->{forcearray} = defined ($params{forcearray} ?
$params{forcearray} : 1;
It would be nice if you could assume a more recent perl (5.10+):
$self->{forcearray} = $params{forcearray} // 1;