this gave a different error on earlier perls