Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Minimize Hash Key Value Combinations

by AlexTape (Monk)
on Nov 18, 2013 at 14:41 UTC ( #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? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-09-28 21:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?