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
In reply to Re^3: DBI->connect fails when password variable used
by Corion
in thread DBI->connect fails when password variable used
by fmagee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |