in reply to A Matrix of Arrays
I think you're problem is that you're overinitilizing. Perl is very good at autovivification; let it do it.
my @table; foreach (0..Inf) { $table[$row][$col]=[qw(some list elements)]; } [download]