You are calling undef() on your DB handle, rather than testing to see if it's defined.
Try changing:
to:if ( undef $dbh ) {
Hope this helps!if ( not defined $dbh ) {
In reply to Re: error handling with dbi
by 1nickt
in thread error handling with dbi
by gandolf989
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |