fix check for perl 5.12