Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
        push @{$result->{$keys[$_]}}, $values[$_] for 0 .. $#keys;
    }
    
  2. or download this
    { H1 => [1, 8, 9], H2 => [2, 7, 10], H3 => [3, 6], H4 => [4, 5] }
    
  3. or download this
    my @B_copy = @B;
    ...
    while (@B_copy) {
        build_hash(\%result, \@A, \@B_copy, $reverse);
    ...
    
  4. or download this
    my @A = qw{H1 H2 H3 H4 H5};
    my @B = 1 .. 23;
    
  5. or download this
    {
      H1 => [1, 10, 11, 20, 21],
    ...
      H4 => [4, 7, 14, 17],
      H5 => [5, 6, 15, 16],
    }