in reply to Re: Detecting modules in use?
in thread Detecting modules in use?

Yes Obiwan :) !!

But this takes care of part of my problem. It doesn't tell me if the database has been connected yet... Its a darn good start tho, considering we have standarized $dbh and $sth as our handlers. I guess I could go from there.

Thanks for the tip!

Replies are listed 'Best First'.
RE: RE: Re: Detecting modules in use?
by t0mas (Priest) on May 29, 2000 at 13:44 UTC
    Don't know if this will help you, but $DBI::lasth remains undef until you touch DBI.

    /brother t0mas
RE: RE: Re: Detecting modules in use?
by mdillon (Priest) on May 29, 2000 at 08:13 UTC
    i don't know of any way to figure out programmatically through DBI whether or not any connections have been made. the only way i can think of is a policy oriented way such as you've suggested (standardizing on $dbh and $sth for handler names).

    i checked out the source of DBD::Pg, and from the looks of things, connect() doesn't keep track of connections. perhaps DBD::MySql does, i don't know.