Hi,

I'm using the DateTime::SpanSet module and I'm looking for a way to reduce
my set by removing spans containing an infinite value (more precise
span->start and span->end).
I've tried the following:

$spanset = $spanset->grep(
sub {
return !($_->start->is_infinite() || $_->end->is_infinite());
}
);

This returns a DateTime::SpanSet consisting of DateTime::Span items. So far
so good.
But the the start and end of each Span is itself a Span, and not DateTime
objects as I was expecting.

Any clues what I'm doing wrong?

Kind regards,
Andreas Isberg

Reply via email to