You can generate a fatal error with full stack trace with confess, and then have that message sent to browser using CGI::Carp qw(fatalstobrowser). It's all in CGI::Carp. | [reply] [d/l] [select] |
ah you pointed me in the right direction.
$SIG{ __DIE__ } = sub { confess( @_ ) };
with fatalstobrowser did the trick, thanks mighty monks. for some reason that particular combination was eluding me. o_o
| [reply] |
I'm not generating the error, it's coming up in the code.
| [reply] |
If your code is calling die, then $SIG{__DIE__}=\&{cluck @_}; along with CGI::Carp qw(fatalstobrowser) should do you.
| [reply] [d/l] [select] |
| [reply] |