Require Perl 5.10; fix syntax errors.