Perhaps this will count as "cheating" for the purpose of this thread, but I just do this to find the min/max of a list

use List::Util qw(min max); $min = min @list; $max = max @list;
;-)

In reply to Re^2: Finding the max()/min() by itub
in thread Finding the max()/min() by dragonchild

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":