in reply to Carp not working after change to objects

Your error says "Can't connect to data source" but the croak in your module says "Cannot connect to database."

Maybe the DBI->connect call is croaking instead of coming back with a false value? Which would explain why it's showing your module in the error message, since it's the one calling DBI->connect

Replies are listed 'Best First'.
Re^2: Carp not working after change to objects
by cosmicperl (Chaplain) on May 16, 2008 at 02:40 UTC
    Good point, my example didn't show the kind of error problem I'm having. I've updated my example to correctly illustrate it.

    Lyle