in reply to Question about array reference
As you observed, it used the same reference each time, so just create a new anonymous array with the data, like this:
push @{ $results[$j][$z] }, [ @result_1 ], [ @result_2 ];
Here the square brackets create a new anonymous array, and we fill them with the elements in @result_1 and @result_2.
Update: Sorry, I misread the code. Please ignore my incorrect reply. chromatic, thanks for pointing out my mistake.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|