Perl: the Markov chain saw | |
PerlMonks |
Re: All Combinations of three arrays.by halley (Prior) |
on Aug 26, 2005 at 16:40 UTC ( [id://486917]=note: print w/replies, xml ) | Need Help?? |
Normally I would try to figure this out, but I'm in a hurry and so i have to ask for assistance.
You're a long-standing monk here; is this the attitude that you like to find at the front gate every day? It probably took you more time to type up your example than it would to code the solution. For the fixed-number-of-columns case, just nest loops.
For the variable-number-of-columns case, a recursive solution or a stack iteration would work. --
In Section
Seekers of Perl Wisdom
|
|