David Nicol wrote: > > looks like you want to test definedness rather > than truth: > > defined($count = $set->count) or die "can't count"; > > in one line. >
Thanks! I added this example to the docs: ----- =item * count Returns a count of C<DateTime> objects in the set. my $n = $set->count( span => $span ); die "can't count" unless defined $n; defined( my $n = $set->count) or die "can't count"; .. ----- - Flavio S. Glock
