in reply to Re: Finding the max()/min()
in thread Finding the max()/min()
sub max { my ($x, @xs) = @_; @xs ? ($x, max(@xs))[$x < max(@xs)] : $x }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Finding the max()/min()
by Ven'Tatsu (Deacon) on Nov 11, 2004 at 22:02 UTC |