Re: Carp and croak instead of warn and die
"Jeffrey Ratcliffe" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
On 02/08/07, Mr. Shawn H. Corey <[email protected]> wrote: > You know what caused the error by the error message. The difference between carp and > die is that carp gives the line number in the calling package and die from wherever it died. The error message doesn't necessarily tell you enough to know which line in the calling package caused the error - hence my preference for croak and carp. Your point about eval is well made, however. Jeff