my @totalx_vals = (@x_vals1, @x_vals2); my @graph_data = (\@totalx_vals, \@y_vals1, \@y_vals2);