Posted on 2006-06-212026-08-05 by TealPerl to the max This is why Perl rocks: sub max{(sort{$b<=>$a}@_)[0];}