in reply to Re: Re: Tl::MainLoop() catch errors
in thread Tl::MainLoop() catch errors

Well, if the call to DBI->connect() doesn't cause a fatal error, can't you just examine the value of $dbh to see if there was an internal error that was by nature non-fatal? Of course, you probably don't want to be declaring $dbh to be a lexical within the scope of the eval {}... I would think you want the handle if the connect succeeds.

--rjray

  • Comment on Re: Re: Re: Tl::MainLoop() catch errors