in reply to disappearing segfault

Given your description it might not work, but it probably won't hurt having a go at running your program through valgrind with various permutations of its options.

Also: these kinds of problems can indicate a buggy version of the perl interpreter. Which perl version on what OS are you using exactly? If you have a vendor-supplied perl version (instead of a self-compiled official release) that might be significant too (and compiling your own could fix your problems). For instance, last summer it was discovered that RedHats version of perl 5.8 had a really nasty (but not fatal) bug in its operator overloading mechanism.