in reply to For Review: DB Import
Some very, very minor points.
You might put the definition of $username, $password, $dsn at the very top of the script. This will make it easier to make simple modifications quickly. Something like:
Also, I'm not sure what the gain is with the obscured password. It isn't too hard to say:use strict; use DBI; use Getopt::Std; my $dsn = "DBI:mysql:$database:localhost"; my $username = 'username'; my $passwd = unpack("u", $enc_passwd); ######### No User servicable parts below ############
print unpack("u", $enc_passwd);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: For Review: DB Import
by impossiblerobot (Deacon) on Jan 25, 2002 at 22:02 UTC |