my @array = ([1,2,3],[4,5,6],[7,8,9]); # Note parens. # or my $aRef = [[1,2,3],[4,5,6],[7,8,9]]; # Note aref, not array