3 ms·
> I remember the tedium of having to maintain your own stacktrace With Carp::confess you get the stack trace easily when throwing an exception. It's been a cor
by G3rn0ti 3y ago
> I remember the tedium of having to maintain your own stacktrace
With Carp::confess you get the stack trace easily when throwing an exception. It's been a core module for ages.
Of course, Perl lacks a flexible condition system like Common Lisp. So all you got is an exception object you can try to handle but no restart handlers you can use to go back down the stack trace. But that's a common limitation of almost all languages supporting exceptions natively.