Yes, thanks. I think this is the easiest way!
On Tue, 16 Jul 2002 12:48:55 -0400 "Shishir K. Singh" <[EMAIL PROTECTED]> wrote: > Why not use sort on the array and get the last element which would be the highest?? > > my @sorted = sort @list; > my $max = $sort[$#sorted]; > > Wouldn't this work ? I a not sure about the speed though!! > > > > >Here is a routing that i use: > -- > > @nums = (5,6,3,7,2,9,12,46); > >$rv = min(\@nums); > > print "$rv\n"; > > >ub min { > > my($num) = @_; > > my ($max) = shift @$num; > > foreach $i (@$num) { > > $max = $i if $max < $i; > > } > > return($max); > >} > > > -----Original Message----- > > From: Konrad Foerstner [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, July 16, 2002 12:38 PM > > To: [EMAIL PROTECTED] > > Subject: find biggest number > > > > > > Hi, > > > > Im looking for a method to exact the > > biggest element (number) out of array. > > Does anyone know a function for that? > > > > cu > > > > Konrad > > > > -- > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]