in reply to Re: use Fatal;
in thread use Fatal;
But make sure you explicitly refer to the error (ie, don't use OO method unless method will definitely be in scope in the sub).local $SIG{__die__} = sub { die ("DBI Error: $DBI::errstr") if $DBI::errstr; die $!; };
Could be very useful...
cLive ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (cLive ;-) Re: use Fatal;
by perrin (Chancellor) on Jan 10, 2002 at 08:30 UTC |