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 ;-)
In reply to (cLive ;-) Re: use Fatal;
by cLive ;-)
in thread use Fatal;
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |