in reply to XML::Simple crashes

My next guess is that your process get a uncatched signal and die. use sigtrap; may catch that. But I have no knowlage of windows.
Boris