Can you provide a little more details? it's best to show how you're using XML::Simple and the test code. I'm using Test:More to test my application which uses XML::Simple, haven't seen any problems yet, but I probably don't have your locking issue. Anyhow, it's pretty hard to tell from what you wrote.