in reply to undef number?

Why not just initialize $max_numb to the first value of $number_to_compare and then run the loop from $i=1 instead?

Paul