Fixed Perl 5.18 syntax warnings.