http://qs321.pair.com?node_id=1074844


in reply to What is wrong in this code?

Or just change your line 9 to
if($max_number eq '' or $current_number > $max_number)