Find the Minimum Value of an Array (Rated 4)Description:
Use this simple function to find the Minimum Value of an Array Code starts here
sub min {
my($min) = shift;
foreach (@_) {
$min = $_ if $min > $_;
}
$min;
}
Submitted by Devscripts on 24-02-2003 12:07 |