in reply to mod_perl and Global Variables
SetEnv DB prod_db
And, in the section for the dev environment you can:
SetEnv DB dev_db
Now, in your script, you can grab the DB environment variable to know which DB to connect to.
Why is $dbh global, BTW. Using Apache::DBI?
Cheers,
KM
|
|---|