my $chart = $mw->Chart( ... ); my $data_aref = subA; subC($chart, $data_aref);