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


in reply to DBI->connect fails when password variable used

Not sure of the details myself but FWIW check the DBI docs for particulars. It ("\%attr") is mentioned under bind_params.

Also, the synopsis has the following. Might be worth a try:

$dbh = DBI->connect($data_source, $username, $auth, \%attr)