<?xml version="1.0" encoding="windows-1252"?>
<node id="997890" title="Re^2: sending a scalar to the interpreter as a command" created="2012-10-08 18:39:52" updated="2012-10-08 18:39:52">
<type id="11">
note</type>
<author id="997857">
silentq</author>
<data>
<field name="doctext">
&lt;p&gt;
Thanks for your quick response, David. I really appreciate it.
&lt;/p&gt;&lt;p&gt;
I would actually prefer to solve the problem without resorting to eval just as you have recommended. But, for some reason, I just can't quite wrap my head around how to do it. Maybe you or someone else can help.
&lt;/p&gt;&lt;p&gt;
What I have is a two-dimensional array filled with scores. That looks something like this:
&lt;/p&gt;&lt;CODE&gt;
67 42 99 28 15 14 92 12 45 57 16

41 99 67 28 15 57 12 45 14 92 12

92 42 67 28 15 45 57 16 12 99 14 
&lt;/code&gt;
&lt;p&gt;
The array can be varying widths and heights. In other words, there are variable numbers of rows and columns.
&lt;/p&gt;&lt;p&gt;
What I want to do is find all the possible combinations when taking one item from each row. I believe there are x^y possible combinations where x represents the number of rows and y represents the number of columns. What I want is this: 67-41-92, 67-41-42, 67-41-67, 67-41-28 ...
&lt;/p&gt;&lt;p&gt;
I believe it's just a matter of nesting arrays. The trick is setting up a dynamic number of these. I played around with the idea of using a while loop, but the problem is that this resulted in consecutive iterations through the arrays, not nested iterations. 
&lt;/p&gt;&lt;p&gt;
So I'm really at a loss at this point. If anyone can help, I'd be very grateful.
&lt;/p&gt;
Thanks,</field>
<field name="root_node">
997874</field>
<field name="parent_node">
997877</field>
</data>
</node>
