Yes, that was the problem, thanks. I installed a copy of 5.8.6 locally in my home directory and ran it against that and the problem went away. For some reason I was just stuck on the idea that it must be my code, never thought about questioning perl itself :)