
davorg
Thaumaturge
/ Moderator
Aug 4, 2006, 3:47 AM
Post #2 of 2
(4052 views)
|
Re: [rajjj] logging the exception in perl
[In reply to]
|
Can't Post
|
|
This really isn't a DBI question. You would have been better off asking it in one of the general forums. There are really two approaches to take. One is to replace all calls to "die" in your program with calls to your own function (called, perhaps, "log_and_die") which logs the message and then calls die. The other approach would be to override Perl's default "die" handling by putting a reference to a die handler in $SIG{__DIE__}. -- Dave Cross, Perl Hacker, Trainer and Writer http://www.dave.org.uk/ Get more help at Perl Monks
|