Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and I need the logical equivalent ofmy %hash = { ball1 => 'red', ball2 => 'blue', ball3 => 'red', };
I cannot just flop keys for values as I've got a duplicate of red. Any ideas?%hash = { red => "ball1,ball3", blue => "ball2", }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mildly tricky hash question
by davido (Cardinal) on Mar 30, 2004 at 08:33 UTC | |
by matija (Priest) on Mar 30, 2004 at 08:43 UTC | |
by Anonymous Monk on Mar 30, 2004 at 19:33 UTC | |
|
Re: mildly tricky hash question
by Tomte (Priest) on Mar 30, 2004 at 08:56 UTC |