Most of our code uses Error::Simple subclasses (Error objects henceforth) to throw and/or catch thrown exceptions as Error objects. In some portions of the code, exceptions are thrown with &Carp::croak (or occassionaly with &die).
Should the croak's be handled via eval{}-$@, or via try-catch even though croak's are not Error objects? Put it other way, would there be problem in using Error objects to capture plain croak (or, die)? (perl is 5.8.[78].)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |