eval {call_function_that_may_die()}; if ($@) { # This is your error case print "Caught a die saying '$@'\n"; } [download]
In reply to Re (tilly) 2: Tricks with DBI by tilly in thread Tricks with DBI by btrott