in reply to Programming style question on where to use die

It really all just depends. On how serious the error is, how flexible you want the sub/module to be, etc. Look at DBI, for instance. You can set a RaiseError flag to raise an exception (die) on any error, or you can check the return value of any method, and get the error message through package or object variables.
  • Comment on Re: Programming style question on where to use die