Help for this page

Select Code to Download


  1. or download this
            @union = @intersection = @difference = ();
            %count = ();
    ...
                push @union, $element;
                push @{ $count{$element} > 1 ? \@intersection : \@differen
    +ce }, $element;
            }
    
  2. or download this
            @union = @intersection = @left = @right = ();
            %count = ();
    ...
            for (keys %common) {
                print "$_\n";
            };