McA has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

can anybody give me advice on the following issue:

To throw exceptions in modules which will be used by others, should I use die or Carp::croak? And when then why?

I have the feeling that reporting the file and line number of the module (using die) exposes some kind of implementation detail which should be hidden, isn't it?

Best regards