in reply to Re^2: DBI->connect fails when password variable used
in thread DBI->connect fails when password variable used

How do you set $passwd?

If you're reading the string from the user, most likely, that string still has a newline at its end, which you might want to remove:

$passwd =~ s/\s*$//; # Remove all whitespace from the end of the passw +ord

Replies are listed 'Best First'.
Re^4: DBI->connect fails when password variable used
by fmagee (Novice) on Aug 10, 2015 at 17:00 UTC
    Thanks, Corion. That works like a champ.