Support Perl 5.10 and 5.12