skeight has asked for the wisdom of the Perl Monks concerning the following question:
Anyone know how I can get that constant into that string??use constant DBNAME => "database_test"; #database_test | database ... my $dbh = DBI->connect('DBI:mysql:database=database','username','passw +ord') or die(); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and Constant
by MeowChow (Vicar) on Feb 12, 2001 at 15:56 UTC | |
|
Re: DBI and Constant
by bbfu (Curate) on Feb 12, 2001 at 14:43 UTC | |
|
Re: DBI and Constant
by TheoPetersen (Priest) on Feb 12, 2001 at 19:49 UTC | |
|
Re: DBI and Constant
by lachoy (Parson) on Feb 12, 2001 at 23:17 UTC |