Help for this page

Select Code to Download


  1. or download this
    $distances{$key1}{$key2} = $value;
    
  2. or download this
    obj1 obj2 => 0.95
    obj2 obj3 => 0.76
    obj1 obj4 => 0.80
    ...
    
  3. or download this
    @subsets = (
    {
    ...
        obj5  => "C5",
    }
    );
    
  4. or download this
    %used = (
    {
    ...
        obj5  => "C5",
    }
    );
    
  5. or download this
    for ($i = 0; $i < 50; $i++) { #loop over array of hashes (each subset 
    +will have 50 keys)
        foreach my $key (keys $subsets[$i]) { #5 keys at each level
    ...
            @max = [];
        }
    }