What reason do you have for putting a password in your scripts?use Term::ReadKey; use DBI; . . . print "Enter password for $user:\n"; ReadMode 2; chomp($passwd = ReadLine(0)); ReadMode 0; # Reset tty mode my $dbh = DBI->connect("DBI:mysql:database=$db;host=$server", $user, $ +passwd);
| Plankton: 1% Evil, 99% Hot Gas. |
In reply to Re: Hiding passwords in scripts
by Plankton
in thread Hiding passwords in scripts
by Plato
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |