6 use List::Util qw(max);
10 print "not " unless defined &max;
13 print "not " unless max(1) == 1;
16 print "not " unless max(1,2) == 2;
19 print "not " unless max(2,1) == 2;
22 my @a = map { rand() } 1 .. 20;
23 my @b = sort { $a <=> $b } @a;
24 print "not " unless max(@a) == $b[-1];