4 require Config; import Config;
5 if ($Config{extensions} !~ /\bList\/Util\b/) {
6 print "1..0 # Skip: List::Util was not built\n";
11 use List::Util qw(first);
15 print "not " unless defined &first;
18 print "not " unless 9 == first { 8 == ($_ - 1) } 9,4,5,6;
21 print "not " if defined(first { 0 } 1,2,3,4);
24 print "not " if defined(first { 0 });