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