Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "\t", $_, "\n" foreach (@intersection);
    
    exit;
    
  2. or download this
    my %temp=map{$_ =>1} @temp;
    my %temp2=map{$_=>1} @temp2;
    my @non_unique_intersection = grep( $temp{$_}, @temp2 );
    print "----------------------\nThe Non-Unique Intersection of Temp and
    + Temp2 Arrays\n";
    print "\t", $_, "\n" foreach (@non_unique_intersection);
    
  3. or download this
    my @non_unique_Lonly = @temp;
    for (my $i=0;$i<scalar(@non_unique_Lonly);$i++){
    ...
    } # end-for
    print "----------------------\nThe Non-Unique Leftover from Temp\n";
    print "\t", $_, "\n" foreach (@non_unique_Lonly);
    
  4. or download this
    my @non_unique_Lonly = @temp;
    my @temp_intersection = @non_unique_intersection;
    ...
    } # end-for
    print "----------------------\nThe Non-Unique Leftover from Temp\n";
    print "\t", $_, "\n" foreach (@non_unique_Lonly);