I'm no good with memory issues, so this may be a stupid question, but: Is it possible that the grandparent (as opposed to the GrandFather) just didn't realise that it's the operating system, not perl itself, that's running out of free memory (since—I think—perl doesn't release memory back to the OS until it exits)?