Subject: | bugs in Date::Range |
Date: | Mon, 14 Nov 2011 21:12:54 -0600 |
To: | bug-Date-Range [...] rt.cpan.org |
From: | Zhen Xie <zhen.xie [...] gmail.com> |
Range.pm
sub equals {
my ($self, $check) = @_;
return unless UNIVERSAL::isa($check => 'Date::Range');
return $self->start == $check->start and $self->end == $check->end;
}
it turns that the *return $self->start == $check->start and $self->end ==
$check->end;
*should be *return ($self->start == $check->start and $self->end ==
$check->end);
*since seems that *return* has higher precedence than "*and*"
v5.12.4
Zhen