my $max = $numbers[0]; for (@numbers) { $max = $_ if $_ > $max; } [download]
Update: Added example.
In reply to Re: undef number? by ikegami in thread undef number? by Anonymous Monk