Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    foreach my $key (keys %count) {
      print "$key appears in both arrays\n" if $count{$key} == 2;
    }
    
  2. or download this
    $ ./foo.pl 
    a appears in both arrays
    e appears in both arrays
    
  3. or download this
    #!/usr/bin/perl -w
    
    ...
        shift @sort2;
      }
    }
    
  4. or download this
    $ ./bar.pl 
    a is in both arrays
    d is in both arrays
    e is in both arrays