my @two_d_array = ([$x,$y,$z],[1,2,3],['a','b','c']); #### my $elements = scalar(@two_d_array);