in reply to Error Output

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.

Replies are listed 'Best First'.
Re^2: Error Output
by geckosan (Sexton) on Jan 21, 2009 at 21:10 UTC
    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
Re^2: Error Output
by geckosan (Sexton) on Jan 21, 2009 at 21:06 UTC
    I'm not generating the error, it's coming up in the code.
      If your code is calling die, then $SIG{__DIE__}=\&{cluck @_}; along with CGI::Carp qw(fatalstobrowser) should do you.
        as you say kennethk, cheers mang.