http://qs321.pair.com?node_id=1231274


in reply to Use of List::Util

LanX pointed out the source of the problem for the first syntax error message regarding line 4.

The second syntax error message about line 11 (the my $max line) is due to missing a semi-colon at the end of the line.