@numbers[$#numbers]; # highest
@numbers[-1]; # highest
> -----Ursprüngliche Nachricht-----
> Von: Angerstein [mailto:[EMAIL PROTECTED]]
> Gesendet am: Freitag, 30. August 2002 10:34
> An: [EMAIL PROTECTED]
> Betreff: AW: find the lowest number?
>
> @numbers = (44, 55, 38, 10 , 5, 7);
> @numbers = sort { $a<=>$b } @number;
> print $numbers[0]; # the lowest
>
> > -----Ursprüngliche Nachricht-----
> > Von: David Samuelsson (PAC) [mailto:[EMAIL PROTECTED]]
> > Gesendet am: Freitag, 30. August 2002 10:23
> > An: '[EMAIL PROTECTED]'
> > Betreff: find the lowest number?
> >
> >
> > i get an array conataining a lot off numbers like this:
> >
> > 567
> > 551
> > 540
> > 540
> > 540
> > 533
> > 531
> > 526
> > 493
> > 476
> > 468
> > 429
> > 421
> > 520
> >
> > how do i find the lowest or the higest number in this series?
> >
> > //Dave
> >
> > --
> > 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]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to