http://www.perlmonks.org?node_id=936120


in reply to Re^3: Finding the max()/min()
in thread Finding the max()/min()

This is the variant I found most straightforward to use:
use List::Util qw[min max]; $m = max(1,2);