Carp and croak instead of warn and die

"Jeffrey Ratcliffe" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
It would be useful if carp and croak were used in all modules instead
of warn and die, thus also displaying the line number of the calling
program, as well as that of the library function.

Whilst using die is acceptable if some batch process is being carried
out, it is rather inconvenient for an application, where the whole
thing crashes with no possibility to trap the error and the user has
no opportunity to save work.

Or am I missing something?

Regards

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.