eduardo has asked for the wisdom of the Perl Monks concerning the following question:
and we want to run it through some transform that will give us an array of every single possible combination of words from each family of keys, in this case:my $words = { 'lng' => ['lang', 'long', 'leng', 'loo'], 'sentance' => ['sentence'], 'thxs' => ['this', 'thus'] };
not neccesseraly in that order, order is unimportant, as long as I had all the possible combinations... what is a good perlish way to do this?lang sentence this long sentence this leng sentence this loo sentence this lang sentence thus long sentence thus leng sentence thus loo sentence thus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: permutations?
by merlyn (Sage) on Jun 14, 2000 at 05:58 UTC | |
by Anonymous Monk on Jul 08, 2002 at 15:25 UTC | |
|
RE: permutations?
by sean (Beadle) on Jun 14, 2000 at 05:06 UTC | |
|
Re: permutations?
by btrott (Parson) on Jun 14, 2000 at 00:14 UTC | |
|
Re: permutations?
by plaid (Chaplain) on Jun 14, 2000 at 00:38 UTC | |
by eduardo (Curate) on Jun 14, 2000 at 00:44 UTC | |
|
Re: permutations?
by fglock (Vicar) on Jul 09, 2002 at 14:06 UTC | |
|
Re: permutations?
by shotgunefx (Parson) on Jul 10, 2002 at 09:42 UTC |