http://www.perlmonks.org?node_id=890319


in reply to Nested foreach loops

If you can't post code, at list post pseudo code, like :
for each color in hearts, spades, clubs, diamonds, do for each figure in ace, king, queen, jack, 10 ....
The difficult part in programming is not writing down the code, it's coming up with the correct algorithm.