http://www.perlmonks.org?node_id=300616


in reply to Re: DBI driver name from database handle
in thread DBI driver name from database handle

Would
$dbh -> {Name}
provide the information you are after?

No.

$dbh -> {Name} provides the name of the database used in the connection string.

From DBI docs

""Name"" (string) Holds the "name" of the database. Usually (and recom­ mended to be) the same as the ""dbi:DriverName:..."" string used to connect to the database, but with the leading ""dbi:DriverName:"" removed.