Hmmm ... the Mysql module can do this:
Database Handle
As said above you get a database handle with the connect() method.
The database handle knows about the socket, the host, and the
database it is connected to.
You get at the three values with the methods
$scalar = $dbh->sock;
$scalar = $dbh->host
$scalar = $dbh->database;
In reply to Re: DBI & setsockopt
by derby
in thread DBI & setsockopt
by fhew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |