http://qs321.pair.com?node_id=1063105


in reply to Re: Minimize Hash Key Value Combinations
in thread Minimize Hash Key Value Combinations

thank you! that was my firt approach.. just use the strings as keys e.g.:
1 => A, B, C 2 => A, B, D 3 => C
but it leads to the same problem.. the result should be this:
1, 2 => A, B 2 => D 1, 3 => C
$perlig =~ s/pec/cep/g if 'errors expected';

Replies are listed 'Best First'.
Re^3: Minimize Hash Key Value Combinations
by Anonymous Monk on Nov 18, 2013 at 16:48 UTC

    I don't get it... what happened to A2 and B2?

      sorry.. fault again:
      1 => A, B, C 2 => A, B, D 3 => C
      1 points on string A, B and C
      2 points on string A, B and D
      3 points on string C
      1, 2 => A, B 2 => D 1, 3 => C
      1 points on string A, B and C
      2 points on string A, B and D
      3 points on string C
      $perlig =~ s/pec/cep/g if 'errors expected';