test condition for perl 5.12 and below