Skip Menu |

This queue is for tickets about the Net-ThirtySevenSignals-Highrise CPAN distribution.

Report information
The Basics
Id: 82870
Status: new
Priority: 0/
Queue: Net-ThirtySevenSignals-Highrise

People
Owner: Nobody in particular
Requestors: wruppert [...] responseb2b.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: (no value)



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;