sub median_num{ my @sorted= @_; #using shift didn't work, why? format? &debug::debugdumplist("median_num(): \@sorted", \@sorted);