in reply to Re^3: error catching
in thread error catching

I meant to say "use RaiseError as an option to the connect call", not as the check for the connect call. Anyway, don't most calls to an unconnected $dbh cause an exception?

Replies are listed 'Best First'.
Re^5: error catching
by diotalevi (Canon) on Dec 20, 2006 at 01:08 UTC

    Yes. A failed ->connect call returns undef so there's no object that a method can be called upon.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊