Jenn G. wrote:
Hello,

How to lookup the max and min value in an array?
Just like SQL's max() and min() functions.

Thanks.


use List::Util qw/min max/;

See `perldoc List::Util` for details.


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

Regardless of how small the crowd is, there is always one in
it who has to find out the hard way that the laws of physics
apply to them too.


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to