in reply to How do I find the biggest number in an array of numbers.

use List::Util 'max'; ... my $max = max( @list );

Replies are listed 'Best First'.
Re: Answer: How do I fin the biggest number in an array of numbers.
by Anonymous Monk on May 27, 2007 at 04:42 UTC
    this logic might help sub max { my $max = pop(@_); foreach (@_) { $max = $_ if $_ > $max; } $max; } Shashidhar Iddamsetty