in reply to Re: Tricks with DBI
in thread Tricks with DBI
This is documented in eval. Here is how it works:
eval {call_function_that_may_die()}; if ($@) { # This is your error case print "Caught a die saying '$@'\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re (tilly) 2: Tricks with DBI
by htoug (Deacon) on Aug 15, 2001 at 12:44 UTC |
In Section
Tutorials