List::Util does it for you:
use strict; use warnings; use List::Util qw(min); my @nums = (3,9,12); my $foo = min (@nums); print $foo;
Prints:
3
In reply to Re: max of N numbers?
by GrandFather
in thread max of N numbers?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |