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 "Union:        @union\n";
    print "Intersection: @intersection\n";
    print "Difference:   @difference\n";
    
  2. or download this
    Union:        1 2 3 4 5 6 7 8
    Intersection: 4 5
    Difference:   1 2 3 6 7 8