Help for this page

Select Code to Download


  1. or download this
    my @array1 = (1,2,3,4,5);
    my @array2 = (4,5,6,7,8);
    ...
    print "Difference:                 @difference\n";
    print "Complement of intersection: @intersection_c\n";
    
  2. or download this
    Union:                      1 2 3 4 5 6 7 8
    Intersection:               4 5
    Difference:                 1 2 3
    Complement of intersection: 1 2 3 6 7 8