in reply to Obscuring sensitive data in Perl code?
You could also use environment variables. That way, it wouldn't matter who saw your script:
my $user = $ENV{ORACLE_USER}; my $passwd = $ENV{ORACLE_PASS}; my $SID = $ENV{ORACLE_SID}; my $dbh = DBI->connect($SID,$user,$passwd,{PrintError=>0, AutoCommit=> +0}) or die "Could not connect to $SID: $DBI::errstr\n";
This also allows you to change the instances, usernames, passwords, etc. without having to edit your script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Obscuring sensitive data in Perl code?
by Madams (Pilgrim) on Mar 10, 2001 at 07:34 UTC | |
by turnstep (Parson) on Mar 11, 2001 at 07:33 UTC |