Maximum Value of an Array (Rated 0)Description:
Use this simple function to find the maximum value of an array. Code starts here
sub max {
my($max) = shift;
foreach (@_) {
$max = $_ if $max < $_;
}
$max;
}
Submitted by Devscripts on 24-02-2003 12:03 |