>>>>> "srinivas" == srinivas reddy <reddysrinivas.k@...> writes:
srinivas> Would you please let me know the efficient way (different ways) to get the
srinivas> max or nth largest element in an array
my $max = max(@some_array);
That's the most efficient, because it's implemented in C. :)
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!