Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
the
cat dog
sat lay
on
the
mat
(The first word must be `the', the second can be `cat' or `dog', etc).
I know there are 4 possible combinations but what is the most efficient way to extract these combinations from the 2D array in Perl?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Combinatorial Algorithms
by shotgunefx (Parson) on Mar 06, 2002 at 12:17 UTC | |
by Anonymous Monk on Mar 06, 2002 at 13:20 UTC | |
by shotgunefx (Parson) on Mar 06, 2002 at 13:24 UTC |