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
In reply to Combinatorial Algorithms by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |