note Sidhekin <p><blockquote><em> If you have a CPAN module, what do you use? Why? Have you switched from one to another? Why? </em></blockquote></p> <p> I use both <c>die</c> and <c>croak</c>: <c>die</c> for internal exceptions, caught or uncaught; <c>croak</c> for user errors. (I use neither <c>carp</c> nor <c>warn</c>, but would probably distinguish those similarly, if I had cause to use them.) </p> <p><blockquote><em> Do you like to see carp/croak or warn/die when using a CPAN module? </em></blockquote></p> <p> <c>carp</c>/<c>croak</c>, definitely. For user errors, that is the most helpful (telling me where I made a mistake, and not where the module found it). For internal exceptions, I prefer the module handle those itself, and don't show me. (Of course, if it cannot handle those itself, it should show me, most usefully using <c>die</c>. I just won't like it.) </p> <div class="pmsig"><div class="pmsig-106949"> <p align=center> <font size=-1><code>print "Just another Perl ${\(trickster and hacker)},"</code></font> <br>The Sidhekin <b>proves</b> Sidhe did it!</p> </div></div> 642655 642655