TeamSite 5.5.2 Win2K
I have a DCT that calls an *.ipl using 'inline command'. In the *.ipl, I connect to an SQL Server database using
my $dbh = DBI->connect(DBI

DBC

BNAME, 'username', 'password') or die "Couldn't connect to database: " . DBI->errstr;
I would like to use ENV vars instead of the literal strings for connect call parameters. However, when I switch to using:
my $dbh = DBI->connect($ENV{DBI_DSN}, $ENV{DB_USR}, $ENV{DB_PWD}') or die "Couldn't connect to database: " . DBI->errstr;
the connect fails.
I had no problem getting this to work when I am connecting from an *.ipl called from a workflow cgitask, but cannot get it working from <inline command>