Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Minimize Hash Key Value Combinations

by AlexTape (Monk)
on Nov 18, 2013 at 14:41 UTC ( [id://1063105]=note: print w/replies, xml ) Need Help??


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';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1063105]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found