in reply to Module wants to die! How do I handle this?

Other excellent answers are around here, but I'm still wondering about the context of your statement that the errors can be "handled intelligently." Do you mean, e.g., that in some place where the module dies, some alternate value could be used so that the module wouldn't have to die and could continue on it's way giving you useful results, or do you just want to trap errors so that your main program can continue (but with no more results from the module)? All of the answers here (eval) address the latter case, but I think the former case would require rewriting...we'd have to see specific cases where you think it shouldn't die.
  • Comment on Re: Module wants to die! How do I handle this?