in reply to which line(s) establishes a 2d arrray

$ret{$j}[$i]=

This establishes a HashOfArrays. See perllol