This may be Perlish, but it is also rather inefficient: O(n*log(n)) vs. O(n).
If you want to do it the Perlish way, why not use max that can be found in the wonderful List::Util module?
Just my 2 cents, -gjb-
In reply to Re: Re: (nrd) finding highest number
by gjb
in thread finding highest number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |