What's the code to retrieve the greatest (largest) numerical value in an array (list)?
No need to reinvent the wheel: use a module.
use List::Util qw(max); $largest = max(qw(1 11 2 3)); print $largest;
In reply to Re: Get biggest value from array
by bart
in thread Get biggest value from array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |