modify keys of a hash using for loop
<p>Hey guys I've got 2 dim array and a hash!
Array's second row values and hash keys are set identical!</p>

<p>What I want is to address each hash key using array's row values and change them to array's current column index</p>

<p>Preview example:</p>

<pre><code>{.....,'_11':val, '_12':value, .....}
</code></pre>

<p><code>arr[1][i]='_12'</code>. use this value to address the the unique hash hey and change that key to i. key=i</p>

<p>Is this the right way? </p>

<pre><code>var keyName;
for(var i=0; i&lt;theLength; i++){
   keyName = arr[1][i];
   hash.keyName=i;
}
</code></pre>

<p>10x for your kind help ,BR</p>
