+ @events = map {
+ foreach my $check_slot ( qw(
+ DESCRIPTION
+ LOCATION
+ STATUS
+ SUMMARY
+ )) {
+ next unless exists $_->{$check_slot};
+ $_->{slots} = $1 if $_->{$check_slot} =~ m/$slot_regex/is;
+ }
+ $_->{slots} ||= $1 if $ical->{cal}->{'X-WR-CALDESC'} =~ m/$slot_regex/s;
+ $_->{slots} ||= 15; # XXX default number of slots
+ $_;
+ } @events;
+