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

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

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊