Help for this page

Select Code to Download


  1. or download this
    for ($ref=0; $ref<$#items; $ref++) {
        for (@{$items[$ref]}) {
            if (!$contains{$_}) { $contains{$_} = [$ref]; } else { push @{
    +$contains{$_}}, $ref; }
        }
    }
    
  2. or download this
    sub get_pairs {
        my %invalids = ();
    ...
    }
    
    @all_matches = get_pairs(2,3,4)