$min = $nums if ($min == undef); $max = $nums if ($max == undef);