A possible way to find the error woud be to Carp::confess() on errors, I think that works via a SIG{__DIE__} handler, but I don't know that offhand.
Update: I just tested it, it doesn't seem to work inside an eval.
In reply to Re^3: How to locate an error in a CGI application
by moritz
in thread How to locate an error in a CGI application
by rbi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |