> Another approach is to wrap the disconnect in eval, which lets you
capture
> the error rather than having it stop your program:
>
>   eval { $dbh->disconnect(); };
>
> If $dbh is not a database handle, the relevant error message will be in
$@.
>
>   perldoc -f eval
>
>

I think the eval method is the way for me to go.  It never occurred to me
to try it that way even though I've used eval quite a bit.

Thanks you've been a big help.

Jeff


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to