in reply to intersection of lists of dates produces too many results!!
I see a completely unrelated problem with your code:
What will happen when you have these values (no real values, just to show you what I mean)foreach my $e (@calendar) { $union{$e} = 1 } foreach $e (@Calendararray) { if ($union{$e}) { $intersect{$e} = 1 } $union{$e} = 1; } @intersect = keys %intersect; @union = keys %union;
You will end up with an @intersection containing "2".@calendar= qw~ 1 ~; @Calendararray=qw~ 2 2 ~;
|
|---|